1
如何將hdfs文件加載到配置單元中。在我的項目中,它需要將hdfs文件加載到配置單元中。我的hdfs文件結構像`/ flume/topic/date/hour/file.hdfs``,問題是我如何自動加載目錄數據。如何將目錄數據加載到配置單元
如何將hdfs文件加載到配置單元中。在我的項目中,它需要將hdfs文件加載到配置單元中。我的hdfs文件結構像`/ flume/topic/date/hour/file.hdfs``,問題是我如何自動加載目錄數據。如何將目錄數據加載到配置單元
1) Directory contains three files
-rw-r--r-- 1 hadoop supergroup 125 2017-05-15 17:53/hallfolder/hall.csv
-rw-r--r-- 1 hadoop supergroup 125 2017-05-15 17:53/hallfolder/hall1.csv
-rw-r--r-- 1 hadoop supergroup 125 2017-05-15 17:54/hallfolder/hall2.csv
2) Enable this command
hive > SET mapred.input.dir.recursive=true;
3) hive>
hive>load data inpath '/hallfolder/*' into table alltable;
是的,我用分區表來解決這個問題。 –
你有沒有遇到同樣的問題? –