Iam new in sqoop.Actual iam used sqoop import & export through command line arguments.But now iam trying to implment with java.I got compile time error when calling expTool.run(sqoopoptions) when using the org.apache.sqoop.SqoopOptions package.If i am trying to use cloudera package instead of apache sqoop package.there is no compile time execption.check the below code snippet
SqoopTool expTool=new ExportTool(); SqoopOptions options=new SqoopOptions(); options.setConnectString("jdbc:mysql://localhost/sample_db"); options.setUsername("hive"); options.setPassword("hadoop"); options.setExportDir("hdfs://localhost:7002/user/warehouse/output1/part-00000"); options.setTableName("warehouse"); options.setInputFieldsTerminatedBy(','); expTool.run(options);
apache.sqoop パッケージの実装に問題はありますか? 助けてください。