从火花使用:
DataFrame.write().mode(SaveMode.Ignore).format("orc").saveAsTable("myTableName")
表正在保存我可以使用下面命令的 hadoop 看到fs -ls /apps/hive/warehouse\test.db'
where test
是我的数据库名称
drwxr-xr-x - psudhir hdfs 0 2016-01-04 05:02
/apps/hive/warehouse/test.db/myTableName
但是当我尝试检查 Hive 中的表时,我也无法使用命令查看它们SHOW TABLES
来自 hiveContext。
sudo cp /etc/hive/conf.dist/hive-site.xml /etc/spark/conf/
这在 Cloudera 快速启动 Virtual Box 中对我有用。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)