Support Questions

Find answers, ask questions, and share your expertise

sqoop eval function

avatar
Contributor

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

avatar

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

avatar

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"

avatar
Contributor

Thanks. I realize my silly mistake and thanks for helping