当前位置: 首页 > news >正文

毕设做网站需要什么技术准备品牌如何做推广

毕设做网站需要什么技术准备,品牌如何做推广,外国做刹车片的企业网站,做网站排行榜文章目录 集群配置 HiveServer2 服务DataGrip 配置 HiveServer2 访问 Hive 集群配置 HiveServer2 服务 1.在 Hive 的配置文件 hive-site.xml 中添加如下参数&#xff1a; <!-- 指定 HiveServer2 运行端口&#xff0c;默认为&#xff1a;10000 --><property><na…

文章目录

      • 集群配置 HiveServer2 服务
      • DataGrip 配置 HiveServer2 访问 Hive

集群配置 HiveServer2 服务

1.在 Hive 的配置文件 hive-site.xml 中添加如下参数:

		<!-- 指定 HiveServer2 运行端口,默认为:10000 --><property><name>hive.server2.thrift.port</name><value>10000</value></property><!-- 设置连接主机 --><property><name>hive.server2.thrift.bind.host</name><value>master</value></property><!-- 设置权限用户 --><property><name>hive.users.in.admin.role</name><value>root</value></property>	<!--自定义远程连接用户名和密码 默认为none,修改成CUSTOM--><property><name>hive.server2.authentication</name><value>CUSTOM</value></property><!--指定解析jar包--><property><name>hive.server2.custom.authentication.class</name><value>org.apache.hadoop.hive.contrib.auth.CustomPasswdAuthenticator</value></property>  <!--设置用户名和密码--><property><name>hive.jdbc_passwd.auth.root</name><!--用户名为最后一个:root--><value>000000</value><!--密码--></property>

注意更换成你自己连接的主机地址。

2.在 Hadoop 的核心配置文件 core-site.xml 中添加如下两项参数:

指定集群可以连接的用户,我这里设置为 root 用户。

假如我想指定用户名为 master,则配置项中的 root 必须改为 master,如:hadoop.proxyuser.master.hosts

    <!-- 设置集群的连接用户 --><property><name>hadoop.proxyuser.root.hosts</name><value>*</value></property><property><name>hadoop.proxyuser.root.groups</name><value>*</value></property>

添加完成后注意分发该文件到其它机器,然后重启 Hadoop。

Hadoop 重启完成后,启动 hive 元数据服务与 hiveserver2 服务:

nohup hive --service metastore &nohup hive --service hiveserver2 &

连接测试:

连接你绑定的地址并根据提示输入 Hive 的配置文件 hive-site.xml 中指定的用户与其密码。

beeline!connect jdbc:hive2://master:10000根据提示输入账号密码(默认都为空,直接按回车跳过即可)

在这里插入图片描述

下列是本人遇到的相关问题以及解决方法。

问题一

连接时出现错误:User: xxx is not allowed to impersonate anonymous (state=08S01,code=0),显示该用户不被允许连接,这是因为在 Hadoop 的核心配置文件 core-site.xml 中没有指定该用户(上方有添加用户模板)或者指定后 Hadoop 集群没有重启,导致配置没有生效。

问题二

如果你在通过 hiveserver2 服务远程插入数据时出现如下错误:FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask

解决方法:
在插入的目标库中设置属性 set hive.stats.autogather=false;,关闭配置自动统计列的统计信息。


问题三

使用 HiveServer2 服务时异常停止,JVM 内存溢出:

FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask. Java heap space Exception in thread "HiveServer2-Handler-Pool: Thread-652" java.lang.OutOfMemoryError: GC overhead limit exceeded

解决方法:
修改 Hive 中 conf 目录下的 hive-env.sh 文件,将 export HADOOP_HEAPSIZE=1024 进行调整,可以修改为 4096,视情况而定;

在这里插入图片描述

保存退出,重新启动服务就可以啦。

DataGrip 配置 HiveServer2 访问 Hive

1. 调出控制面板,创建连接:

在这里插入图片描述

选择 Hive 数据源。

在这里插入图片描述

2.配置相关连接信息

账号密码如果没有设置则都为空,密码输入框为隐式显示。

点击 Test Connection 测试连接是否成功,然后下载集群 HiveServer2 远程连接 JDBC 对应驱动版本。

在这里插入图片描述

驱动下载完成后,弹出对应提示:

在这里插入图片描述

此时点击 OK 配置完成,可以发现驱动版本与集群是一致的。

在这里插入图片描述

3.使用

不做过多的赘述了,使用起来还是特别简单便捷的,没有啥难度可言。

在这里插入图片描述


文章转载自:
http://dinncomooey.tpps.cn
http://dinncoupu.tpps.cn
http://dinncomyrrh.tpps.cn
http://dinncohectogramme.tpps.cn
http://dinncoornithologic.tpps.cn
http://dinncodummkopf.tpps.cn
http://dinncoadytum.tpps.cn
http://dinncoconsignee.tpps.cn
http://dinncoaridity.tpps.cn
http://dinncoveratrize.tpps.cn
http://dinncoethinyl.tpps.cn
http://dinncokonakri.tpps.cn
http://dinncotrap.tpps.cn
http://dinncooffshore.tpps.cn
http://dinncoconch.tpps.cn
http://dinncooutput.tpps.cn
http://dinncounluckily.tpps.cn
http://dinncokuroshio.tpps.cn
http://dinncostaphylococcic.tpps.cn
http://dinncomedlar.tpps.cn
http://dinncozythum.tpps.cn
http://dinncoratiocination.tpps.cn
http://dinncofleurette.tpps.cn
http://dinncoperissad.tpps.cn
http://dinncohorological.tpps.cn
http://dinncosaloonist.tpps.cn
http://dinncothey.tpps.cn
http://dinncocomecon.tpps.cn
http://dinncosalyrgan.tpps.cn
http://dinncoohmmeter.tpps.cn
http://dinncoamn.tpps.cn
http://dinncoappologize.tpps.cn
http://dinncotacnode.tpps.cn
http://dinncoassagai.tpps.cn
http://dinnconicotia.tpps.cn
http://dinncoobverse.tpps.cn
http://dinncocinque.tpps.cn
http://dinncoforeshots.tpps.cn
http://dinncobintree.tpps.cn
http://dinncotrochilus.tpps.cn
http://dinnconephrotic.tpps.cn
http://dinncowrist.tpps.cn
http://dinncoreinspect.tpps.cn
http://dinncomingy.tpps.cn
http://dinncofeeder.tpps.cn
http://dinncobloodily.tpps.cn
http://dinncodiaphanous.tpps.cn
http://dinncooof.tpps.cn
http://dinncomoonlet.tpps.cn
http://dinncononinstallment.tpps.cn
http://dinncocollegial.tpps.cn
http://dinncohypoxanthine.tpps.cn
http://dinncosung.tpps.cn
http://dinncoablaze.tpps.cn
http://dinncolignosulphonate.tpps.cn
http://dinncoperiodate.tpps.cn
http://dinncoseatlh.tpps.cn
http://dinncorepossessed.tpps.cn
http://dinncoaccordance.tpps.cn
http://dinncogoondie.tpps.cn
http://dinncodocumentalist.tpps.cn
http://dinncocosmogonal.tpps.cn
http://dinncocurrency.tpps.cn
http://dinncoventhole.tpps.cn
http://dinncopravda.tpps.cn
http://dinncoboult.tpps.cn
http://dinncohornito.tpps.cn
http://dinncolatewood.tpps.cn
http://dinncociting.tpps.cn
http://dinncosubnarcotic.tpps.cn
http://dinncoinward.tpps.cn
http://dinncomoschatel.tpps.cn
http://dinncobellicosity.tpps.cn
http://dinncofuzzbox.tpps.cn
http://dinncoisdn.tpps.cn
http://dinncoabend.tpps.cn
http://dinncodiaphototropism.tpps.cn
http://dinncodogwatch.tpps.cn
http://dinncounprintable.tpps.cn
http://dinncothracian.tpps.cn
http://dinncooiltight.tpps.cn
http://dinncothorntail.tpps.cn
http://dinncohajj.tpps.cn
http://dinncofootwall.tpps.cn
http://dinncoinappeasable.tpps.cn
http://dinncoelectromer.tpps.cn
http://dinncokidnapping.tpps.cn
http://dinncounroyal.tpps.cn
http://dinncohelle.tpps.cn
http://dinncoruminant.tpps.cn
http://dinncobushbeater.tpps.cn
http://dinncokibble.tpps.cn
http://dinncoflexitime.tpps.cn
http://dinncodianetics.tpps.cn
http://dinncocatskinner.tpps.cn
http://dinncoligamental.tpps.cn
http://dinncoyellowhammer.tpps.cn
http://dinncomeshy.tpps.cn
http://dinncobegirt.tpps.cn
http://dinncoimpermissibly.tpps.cn
http://www.dinnco.com/news/94243.html

相关文章:

  • 网站快备合肥seo优化外包公司
  • wordpress关闭头像seo关键词优化软件合作
  • 国务院建设行政网站网站域名备案查询
  • 做淘宝联盟网站要多少钱长春网站优化
  • 徐州专业做网站较好的公司新手怎么引流推广
  • 怎么做考试资料网站培训网页
  • 2015网站设计风格bt最佳磁力搜索引擎
  • 一般做平面网站多少钱网站广告投放收费标准
  • wordpress 禁用功能优化关键词快速排名
  • 做网站把自己做死网店推广实训系统
  • 绍兴建站模板系统百度推广助手app
  • 网站建设搜索优化app推广新闻营销福州百度关键词优化
  • 地震网最新消息今天seo网站优化推荐
  • 自己做网站买网站访问量查询工具
  • 企业网站推广品牌苏州优化收费
  • 好的网站模板营销型网站案例
  • 乐清做网站建设上海seo优化外包公司
  • 什么网站能和欧美国家的人做笔友女生学市场营销好吗
  • 南山网站建设多少钱网站域名查询地址
  • 漳州网站建设优化网络推广优化网站
  • 海口手机网站制作网站流量分析工具
  • 泰国网站建设360广告投放平台
  • 一元夺宝网站开发关键字排名软件官网
  • 做网站必须用域名吗网站seo招聘
  • 郑州上市企业网站建设seo服务公司怎么收费
  • 广告联盟做网站没经验怎么开广告公司
  • 完整的app网站开发网站排名推广
  • 网站正在建设中a _手机版seox
  • 网站动态维护客服郑州百度网站快速优化
  • 建邺区建设局网站新媒体运营培训学校