5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-12 23:11:43 +08:00

SQOOP-1767: Sqoop2: commands in 5 minute demo docs are out-of-sync

(Qian Xu via Abraham Elmahrek)
This commit is contained in:
Abraham 2014-11-19 10:34:52 -08:00
parent abd12fa544
commit ae24e4893f

View File

@ -75,7 +75,7 @@ Creating Link Object
Check for the registered connectors on your Sqoop server: :: Check for the registered connectors on your Sqoop server: ::
sqoop:000> show connector --all sqoop:000> show connector
+----+------------------------+----------------+------------------------------------------------------+----------------------+ +----+------------------------+----------------+------------------------------------------------------+----------------------+
| Id | Name | Version | Class | Supported Directions | | Id | Name | Version | Class | Supported Directions |
+----+------------------------+----------------+------------------------------------------------------+----------------------+ +----+------------------------+----------------+------------------------------------------------------+----------------------+
@ -88,7 +88,7 @@ Our example contains two connectors. The one with connector Id 2 is called the `
Generic JDBC Connector in our example has a persistence Id 2 and we will use this value to create new link object for this connector. Note that the link name should be unique. Generic JDBC Connector in our example has a persistence Id 2 and we will use this value to create new link object for this connector. Note that the link name should be unique.
:: ::
sqoop:000> create link --cid 2 sqoop:000> create link -c 2
Creating link for connector with id 2 Creating link for connector with id 2
Please fill following values to create new link object Please fill following values to create new link object
Name: First Link Name: First Link
@ -109,7 +109,7 @@ In the ``show connector -all`` we see that there is a hdfs-connector registered
:: ::
sqoop:000> create link --cid 1 sqoop:000> create link -c 1
Creating link for connector with id 1 Creating link for connector with id 1
Please fill following values to create new link object Please fill following values to create new link object
Name: Second Link Name: Second Link
@ -125,7 +125,7 @@ Connectors implement the ``From`` for reading data from and/or ``To`` for writin
:: ::
sqoop:000> show links -all sqoop:000> show link --all
2 link(s) to show: 2 link(s) to show:
link with id 1 and name First Link (Enabled: true, Created by root at 11/4/14 4:27 PM, Updated by root at 11/4/14 4:27 PM) link with id 1 and name First Link (Enabled: true, Created by root at 11/4/14 4:27 PM, Updated by root at 11/4/14 4:27 PM)
Using Connector id 2 Using Connector id 2
@ -161,9 +161,6 @@ Next, we can use the two link Ids to associate the ``From`` and ``To`` for the j
ToJob configuration ToJob configuration
Output format:
0 : TEXT_FILE
1 : SEQUENCE_FILE
Output format: Output format:
0 : TEXT_FILE 0 : TEXT_FILE
1 : SEQUENCE_FILE 1 : SEQUENCE_FILE
@ -183,9 +180,8 @@ Next, we can use the two link Ids to associate the ``From`` and ``To`` for the j
Output directory:(Required)/root/projects/sqoop Output directory:(Required)/root/projects/sqoop
Driver Config Driver Config
Extractors:(Optional) 2
Extractors: 2 Loaders:(Optional) 2
Loaders: 2
New job was successfully created with validation status OK and persistent id 1 New job was successfully created with validation status OK and persistent id 1
Our new job object was created with assigned id 1. Our new job object was created with assigned id 1.
@ -196,7 +192,7 @@ Start Job ( a.k.a Data transfer )
You can start a sqoop job with the following command: You can start a sqoop job with the following command:
:: ::
sqoop:000> start job --jid 1 sqoop:000> start job -j 1
Submission details Submission details
Job ID: 1 Job ID: 1
Server URL: http://localhost:12000/sqoop/ Server URL: http://localhost:12000/sqoop/
@ -211,7 +207,7 @@ You can iteratively check your running job status with ``status job`` command:
:: ::
sqoop:000> status job --jid 1 sqoop:000> status job -j 1
Submission details Submission details
Job ID: 1 Job ID: 1
Server URL: http://localhost:12000/sqoop/ Server URL: http://localhost:12000/sqoop/
@ -222,6 +218,23 @@ You can iteratively check your running job status with ``status job`` command:
http://vbsqoop-1.ent.cloudera.com:8088/proxy/application_1412137947693_0001/ http://vbsqoop-1.ent.cloudera.com:8088/proxy/application_1412137947693_0001/
2014-11-04 20:09:16 PST: RUNNING - 0.00 % 2014-11-04 20:09:16 PST: RUNNING - 0.00 %
Alternatively you can start a sqoop job and observe job running status with the following command:
::
sqoop:000> start job -j 1 -s
Submission details
Job ID: 1
Server URL: http://localhost:12000/sqoop/
Created by: root
Creation date: 2014-11-04 19:43:29 PST
Lastly updated by: root
External ID: job_1412137947693_0001
http://vbsqoop-1.ent.cloudera.com:8088/proxy/application_1412137947693_0001/
2014-11-04 19:43:29 PST: BOOTING - Progress is not available
2014-11-04 19:43:39 PST: RUNNING - 0.00 %
2014-11-04 19:43:49 PST: RUNNING - 10.00 %
And finally you can stop running the job at any time using ``stop job`` command: :: And finally you can stop running the job at any time using ``stop job`` command: ::
sqoop:000> stop job --jid 1 sqoop:000> stop job -j 1