Hi,
I'm trying to start using sqoop2. I'm so far not seeing the complete
documentation for describing the arguments for exporting a table from hive,
etc.
E.g. in sqoop1, you have things like:
--map-column-java
--fields-terminated-by
etc.
Is there a simple mapping for providing these from the sqoop2 thin-client
api (as compared to the args we would use directly with sqoop1)?. I
haven't poked too far down in the source code (was hoping there's some
early documentation on this available?).
Currently, I'm getting errors like this (and I assume I need to provide
info about types, delimiting, etc.?).
org.apache.sqoop.common.SqoopException: MAPRED_EXEC_0018:Error occurs
during loader run
at
org.apache.sqoop.job.mr.SqoopOutputFormatLoadExecutor$ConsumerThread.run(SqoopOutputFormatLoadExecutor.java:229)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NumberFormatException: For input string:
"RilcQmvw9ielrQUw0GB"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:441)
at java.lang.Long.parseLong(Long.java:483)
at org.apache.sqoop.job.io.Data.parseField(Data.java:449)
at org.apache.sqoop.job.io.Data.parse(Data.java:374)
at org.apache.sqoop.job.io.Data.g
java.lang.Throwable: Child Error
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:250)
Caused by: java.io.IOException: Task process exit with nonzero status of 65.
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:237)
Thanks,
Jason