Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

hi, i am able to list the databases but i am unable to import a table from database i have given query like this sqoop import jdbe:sqlserver;//xxx.xxx.xx.xx:1433/sample --table TEST--username uname --password pwd -m 1 iam getting the error

avatar
Rising Star
1 ACCEPTED SOLUTION

avatar

@omkar pathallapalli I'm assuming "sample" is a database name. You do not specify the database name after the port number. Here is an example sqoop command that pulls a table from the AdventureWorks database.

sqoop import --connect "jdbc:sqlserver://192.168.56.101:1433;database=AdventureWorksDW2014;username=hadoop;password=hadoop" --table DimCustomer --hive-import

View solution in original post

1 REPLY 1

avatar

@omkar pathallapalli I'm assuming "sample" is a database name. You do not specify the database name after the port number. Here is an example sqoop command that pulls a table from the AdventureWorks database.

sqoop import --connect "jdbc:sqlserver://192.168.56.101:1433;database=AdventureWorksDW2014;username=hadoop;password=hadoop" --table DimCustomer --hive-import