MapR 5.0 Documentation : Manage Sqoop2 Server and Client

This page contains the following topics:

Starting the Sqoop2 Command Line Client

The Sqoop install directory (<SQOOP_INSTALL_DIR>) is of the form /opt/mapr/sqoop/sqoop-<version_number>.

  • To start the sqoop2 command line client without MapR-SASL authentication, enter:

    $ cd <SQOOP_INSTALL_DIR>
    $ ./bin/sqoop.sh client
  • To start the Sqoop2 command line client with MapR-SASL authentication, enter:

    $ cd <SQOOP_INSTALL_DIR>
    $ ./bin/sqoop.sh client --custom

Starting and Stopping the Sqoop2 Server

To start the Sqoop2 server on a node called node001, enter the following command at the command line:

maprcli node services -name sqoop2 -action start -nodes node001

To stop the Sqoop2 server, enter the following command at the command line:

maprcli node services -name sqoop2 -action stop -nodes node001

Verifying Server Status

The Sqoop2 server uses port 12000. To verify server status, enter:

lsof -i:12000


The output of this command should look similar to this:

COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
java    14444 mapr  103u  IPv6 2795065      0t0  TCP *:12000 (LISTEN)


Logs:
/opt/mapr/sqoop/sqoop-2.0.0/logs/sqoop.log
/opt/mapr/sqoop/sqoop-2.0.0/logs/server/logs/catalina.out