2016-11-28 42 views
0

運行Sqoop import-all-table命令時出現錯誤。 chgrp: changing ownership of 'hdfs://quickstart.cloudera:8020/user/hive/warehouse/retail_db.db/categories/part-m-00000': User does not belong to supergroup用戶不屬於supergroup

的命令是sqoop import-all-tables --connect "jdbc:mysql://localhost:3306/retail_db" --username retail_dba -P --hive-import --hive-database retail_db --create-hive-table --hive-overwrite -m 2

我檢查了以下文件,但dfs.permission設置爲false。

[[email protected] ~]$ locate hdfs-site.xml 
/etc/hadoop/conf.empty/hdfs-site.xml 
/etc/hadoop/conf.impala/hdfs-site.xml 
/etc/hadoop/conf.pseudo/hdfs-site.xml 
/etc/impala/conf.dist/hdfs-site.xml 

超羣不存在在/ etc/group中

請提出來解決這個問題。

+0

它的ERROR或INFO?您可以在配置單元提示中看到數據庫retail_db嗎? –

+0

感謝@Nirmal Ram的快速響應,我已經檢查了只有類別表格更新在配置單元中,沒有其他表格是在配置單元下創建的。 –

+0

您是否已通過移至retail_db數據庫進行檢查 - >「use retail_db;」 ?您的Metastore是否使用Derby數據庫? –

回答

0

機器重​​啓後,我能夠運行下面的查詢是相同的信息消息,但與所有表中的所有數據。 sqoop import-all-tables --connect "jdbc:mysql://localhost:3306/retail_db" --username retail_dba -P --hive-import --hive-database retail_db --create-hive-table --hive-overwrite