Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

sqoop eval function

Solved Go to solution
Highlighted

sqoop eval function

Explorer

execution following eval function getting error

sqoop eval --connect jdbc:mysql://localhost.localdomain/sqoop_test --table emp --username root --query "SELECT * FROM emp"
Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
15/12/09 21:21:39 INFO sqoop.Sqoop: Running Sqoop version: 1.4.3-cdh4.7.0
15/12/09 21:21:39 ERROR tool.BaseSqoopTool: Error parsing arguments for eval:
15/12/09 21:21:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --table
15/12/09 21:21:39 ERROR tool.BaseSqoopTool: Unrecognized argument: emp
15/12/09 21:21:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --username
15/12/09 21:21:39 ERROR tool.BaseSqoopTool: Unrecognized argument: root
15/12/09 21:21:39 ERROR tool.BaseSqoopTool: Unrecognized argument: --query
15/12/09 21:21:39 ERROR tool.BaseSqoopTool: Unrecognized argument: SELECT * FROM emp
Try --help for usage instructions.
usage: sqoop eval [GENERIC-ARGS] [TOOL-ARGS]
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: sqoop eval function

Hi @Bhupendra Mishra

You don't need the --table argument - it's only relevant for imports and exports (not eval).

Try this:

sqoop eval --connect jdbc:mysql://localhost.localdomain/sqoop_test --username root --query "SELECT * FROM emp"

View solution in original post

2 REPLIES 2
Highlighted

Re: sqoop eval function

Hi @Bhupendra Mishra

You don't need the --table argument - it's only relevant for imports and exports (not eval).

Try this:

sqoop eval --connect jdbc:mysql://localhost.localdomain/sqoop_test --username root --query "SELECT * FROM emp"

View solution in original post

Highlighted

Re: sqoop eval function

Explorer

Thanks. I realize my silly mistake and thanks for helping

Don't have an account?
Coming from Hortonworks? Activate your account here