搜索
搜 索
本版
文章
帖子
用户
图文精华
hadoop-2.6.0+zookeeper-3.4.6+hbase-1.0.0+hive-1.1.0完全分布 ...
首页
Portal
专题
BBS
面试
办公|编程助手
更多
登录
注册
用户组:游客
主题
帖子
云币
我的帖子
我的收藏
我的好友
我的勋章
设置
退出
导读
淘贴
博客
群组
社区VIP
APP下载
今日排行
本周排行
本周热帖
本月排行
本月热帖
会员排行
About云-梭伦科技
»
专题
›
交流区
›
技术交流
›
Spark
›
疑问解答
›
spark2.X 访问不到hive 数据库,求帮忙
0
4
0
分享
spark2.X 访问不到hive 数据库,求帮忙
JQKA2
2018-8-23 19:03:49
发表于
疑问解答
[显示全部楼层]
阅读模式
关闭右栏
4
5885
About云VIP帮助找工作和提升
我已经把hive-site.xml 扔到resource下面了
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
千斤顶
显身卡
已有(4)人评论
电梯直达
正序浏览
jixianqiuxue
发表于 2018-8-23 19:44:26
很多都出现这种情况。可以把hive的配置写到代码中,特别是远程连接url配置。
回复
使用道具
举报
显身卡
jixianqiuxue
发表于 2018-8-24 10:17:32
我也是遇到这个问题的,配置文件是可能读取不到的,代码里面设置下下面问题就解决了
<property>
<name>hive.metastore.uris</name>
<value>thrift://hadoop1:9083</value>
<description>Thrift URI for the remote metastore. Used by metastore client to connect to remote metastore.</description>
</property>
回复
使用道具
举报
显身卡
BIGME
发表于 2018-8-24 11:20:08
hadoop的 core-site.xml也拷贝了把
回复
使用道具
举报
显身卡
Tesla
发表于 2018-9-13 15:14:41
应该是放在 conf目录下啊
/home/xxx/clouds/soft/spark-2.3.1/conf
[xxx@02 conf]$ ll
total 36
-rw-rw-r-- 1 ctu ctu 996 Jun 2 04:49 docker.properties.template
-rw-rw-r-- 1 ctu ctu 1105 Jun 2 04:49 fairscheduler.xml.template
lrwxrwxrwx 1 ctu ctu 51 Sep 7 17:38 hive-site.xml -> /home/xxx/clouds/soft/hive-1.2.2/conf/hive-site.xml
-rw-rw-r-- 1 ctu ctu 2025 Jun 2 04:49 log4j.properties.template
-rw-rw-r-- 1 ctu ctu 7801 Jun 2 04:49 metrics.properties.template
-rw-rw-r-- 1 ctu ctu 54 Sep 7 16:15 slaves
-rw-rw-r-- 1 ctu ctu 1326 Sep 7 17:25 spark-defaults.conf
-rwxrwxr-x 1 ctu ctu 4667 Sep 7 17:33 spark-env.sh
回复
使用道具
举报
显身卡
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
立即注册
本版积分规则
发表回复
回帖后跳转到最后一页
发表新帖
JQKA2
新手上路
关注
主题
帖子
粉丝
TA的主题
spark2.X 访问不到hive 数据库,求帮忙
2018-8-23
24小时热文
eclipse搭建hadoop-3.1.2所需插件
2023年2月名企最新内推
数据库系统工程师教程(第4版)
代码精进之路:从码农到工匠
35岁职场危机,出路在哪
关闭
推荐
/2
中文版ChatGPT
1.无需魔法 2.提高编程效率 3.提高文档能力
查看 »
新手帮助
新手帮助:注册遇到问题,领取资源,加入铁粉群,不会使用搜索,如何获取积分等
查看 »
意见
反馈