Sqoop import - 使用append的增量加载

时间:2016-10-19 04:04:08

标签: sqoop

我尝试使用sqoop import中的append选项进行增量加载。它附加在HDFS文件中,当我查询表时,值为NULL。

命令:

String newWordScene(Stage primaryStage) { Text prompText = new Text("Word to guess: "); TextField wordToGuess = new TextField(); Button submitButton = new Button(); GridPane grid = new GridPane(); grid.add(prompText, 0, 0); grid.add(wordToGuess, 0, 1); grid.add(submitButton, 0, 2); Scene newWordScene = new Scene(grid, 500, 500); primaryStage.setScene(newWordScene); primaryStage.show(); submitButton.setOnAction(e-> { if(verify(wordToGuess.getText())) return wordToGuess.getText(); }); } }

Hive结果:

sqoop import --connect "jdbc:mysql://quickstart.cloudera:3306/retail_db" --username=retail_dba --password=cloudera --table departments --append --target-dir /user/hive/warehouse/departments --where "department_id>7" --outdir java_files

0 个答案:

没有答案