Home > database >  Sqoop import data from the local MySQL to Java. In the time of HDFS lang. RuntimeException: Java. La
Sqoop import data from the local MySQL to Java. In the time of HDFS lang. RuntimeException: Java. La

Time:09-24

17/04/22 15:43:59 INFO mapred. Task: Using ResourceCalculatorProcessTree: []
17/04/22 15:43:59 INFO db. DBInputFormat: Using the read commited transaction isolation
17/04/22 15:43:59 INFO mapred. MapTask: Processing the split: 1=1 AND 1=1
17/04/22 15:43:59 INFO mapred. LocalJobRunner: map task executor complete.
17/04/22 15:43:59 WARN mapred. LocalJobRunner: job_local1299090894_0001
Java. Lang. Exception: Java. Lang. RuntimeException: Java. Lang. ClassNotFoundException: Class emplyee n ot found
At org, apache hadoop. Mapred. LocalJobRunner $Job. RunTasks (LocalJobRunner. Java: 462)
At org, apache hadoop. Mapred. LocalJobRunner $Job. The run (522) LocalJobRunner. Java:
Under Caused by: Java. Lang. RuntimeException: Java. Lang. ClassNotFoundException: Class emplyee not found
At org, apache hadoop. Conf. Configuration. GetClass (2154) Configuration. Java:
The at org. Apache. Sqoop. Graphs. The DBConfiguration. GetInputClass (DBConfiguration. Java: 403)
The at org. Apache. Sqoop. Graphs. The DataDrivenDBInputFormat. CreateDBRecordReader (DataDrivenDB InputFormat. Java: 237)
The at org. Apache. Sqoop. Graphs. The DBInputFormat. CreateRecordReader (DBInputFormat. Java: 263)
At org, apache hadoop. Mapred. MapTask $NewTrackingRecordReader. & lt; init> (MapTask. Java: 512)
At org, apache hadoop. Mapred. MapTask. RunNewMapper (MapTask. Java: 755)
At org, apache hadoop. Mapred. MapTask. Run (341) MapTask. Java:
At org, apache hadoop. Mapred. LocalJobRunner $$MapTaskRunnable Job. The run (243) LocalJobRunner. Java:
The at Java. Util. Concurrent. Executors $RunnableAdapter. Call (471) Executors. Java:
The at Java. Util. Concurrent. FutureTask. Run (FutureTask. Java: 262)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1145)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 615)
The at Java. Lang. Thread. The run (Thread. Java: 745)
Under Caused by: Java. Lang. ClassNotFoundException: Class emplyee not found
At org, apache hadoop. Conf. Configuration. GetClassByName (2060) Configuration. Java:
At org, apache hadoop. Conf. Configuration. GetClass (2152) Configuration. Java:
. 12 more
17/04/22 15:44:00 INFO graphs. The Job: the Job job_local1299090894_0001 running in uber mode: false
17/04/22 15:44:00 INFO graphs. The Job: the map reduce 0% 0%
17/04/22 15:44:00 INFO graphs. The Job: the Job job_local1299090894_0001 failed with the state failed due to: NA
17/04/22 15:44:00 INFO graphs. The Job: Counters: 0
17/04/22 15:44:00 WARN graphs. Counters: Group FileSystemCounters is deprecated. Use org. Home. The apache hadoop. Graphs. FileSystemCounter
17/04/22 15:44:00 INFO graphs. ImportJobBase: Transferred 0 bytes in 5.5392 seconds (0 bytes/SEC)
17/04/22 15:44:00 WARN graphs. Counters: Group org.. Apache hadoop. Mapred. Task $Counter is deprecat Ed Use. Org. Apache hadoop. Graphs. Home TaskCounter
17/04/22 15:44:00 INFO graphs. ImportJobBase: Retrieved 0 records.
17/04/22 15:44:00 ERROR tool. ImportTool: ERROR during import, an import job failed!

CodePudding user response:

Add a parameter -- bindir.

Sudo./sqoop import - connect JDBC: mysql://127.0.0.1:3306/peach3 - the username root - password 123456 - table record - hive - import - create - hive - table - the hive - table peach. Record -- bindir.
  • Related