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

安庆网站设计网址大全下载

安庆网站设计,网址大全下载,wordpress 语言设置,大庆网站建设目录 idea/dg远程连接导入数据建表数据导入 idea/dg远程连接 hive的详细安装不多展示,自行搜索即可。 依次启动zookeeper,hadoop 在zookeeper的节点上启动如下指令(我的是1个主节点和2个备用节点) 启动Hive的metastore&#xff0…

目录

  • idea/dg远程连接
  • 导入数据
    • 建表
    • 数据导入

idea/dg远程连接

hive的详细安装不多展示,自行搜索即可。
依次启动zookeeper,hadoop
在zookeeper的节点上启动如下指令(我的是1个主节点和2个备用节点)
启动Hive的metastore(存储和管理元数据的服务)和hiveserver2(远程连接服务)

nohup hive --service metastore >  /root/training/apache-hive-3.1.3-bin/logs/metastore.log 2>&1 &
nohup hive --service hiveserver2 > /root/training/apache-hive-3.1.3-bin/logs/hiveserver2.log 2>&1 &

远程连接方面,以idea为例(datagrip在idea有集成)
在这里插入图片描述
注意下端口和用户即可,其他的没什么特别需要注意的地方。

报错

[08S01][1] Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: org.apache.hadoop.security.AccessControlException Permission denied: user=anonymous, access=WRITE, inode=“/user/hive/warehouse”:root:supergroup:drwxr-xr-x at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:506) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:346) at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermissionWithContext(FSPermissionChecker.java:3 …

连接完成后敲代码,遇到这样的错误表明:当前用户操作的hdfs目录(hdfs中的hive目录)权限不够
我这里是匿名用户,没有写的权限,因此需要修改

解决
在虚拟机上修改hadoop中的warehouse目录下的权限,这也是hive的目录
这个目录修改为你自己的即可,具体看报错内容

hdfs dfs -chmod 777 /user/hive/warehouse

导入数据

自己建立一个csv文件(数据描述)
由于虚拟机大小限制,自己重新做了个。
关于csv文件自行编写即可

建表

创建表user_log和user_info。

create table user_info(id int comment "唯一表示id",age_range int comment "年龄范围",gender  int comment "性别 0女 1男 2保密"
)
row format delimited
fields terminated by ","
lines terminated by "\n";create table user_log(user_id int comment "买家id",item_id int comment "产品id",cat_id int comment "分类id",seller_id int comment "卖家id",brand_id int comment "品牌id",time_stamp bigint comment "时间戳",action_type int
)
row format delimited
fields terminated by ","
lines terminated by "\n";

数据导入

值得说明的是,csv文件首行(列名描述)应当删去,不然导入数据时会出现首行因数据类型不一致而出现空的情况
在这里插入图片描述
上传数据至hive中(用hive的客户端)

load data local inpath '/root/tools/user_log.csv' into table user_log;
load data local inpath '/root/tools/user_info.csv' into table user_info;

文章转载自:
http://calcimine.xsfg.cn
http://gravettian.xsfg.cn
http://kilchoanite.xsfg.cn
http://pleura.xsfg.cn
http://tetraphyllous.xsfg.cn
http://expectability.xsfg.cn
http://acknowledgedly.xsfg.cn
http://apopemptic.xsfg.cn
http://hyraces.xsfg.cn
http://catabaptist.xsfg.cn
http://agrometeorological.xsfg.cn
http://setiparous.xsfg.cn
http://blt.xsfg.cn
http://limonite.xsfg.cn
http://tricel.xsfg.cn
http://minipig.xsfg.cn
http://weaponization.xsfg.cn
http://kain.xsfg.cn
http://salmo.xsfg.cn
http://imponderability.xsfg.cn
http://urbane.xsfg.cn
http://upbringing.xsfg.cn
http://adventureful.xsfg.cn
http://abscondee.xsfg.cn
http://potash.xsfg.cn
http://monroeism.xsfg.cn
http://readjust.xsfg.cn
http://stemmed.xsfg.cn
http://hemathermal.xsfg.cn
http://screwy.xsfg.cn
http://malcontent.xsfg.cn
http://asuncion.xsfg.cn
http://rump.xsfg.cn
http://safelight.xsfg.cn
http://sarum.xsfg.cn
http://ventilator.xsfg.cn
http://kif.xsfg.cn
http://milreis.xsfg.cn
http://montanic.xsfg.cn
http://underclass.xsfg.cn
http://swipes.xsfg.cn
http://broadwise.xsfg.cn
http://unrequested.xsfg.cn
http://inflict.xsfg.cn
http://amphiphilic.xsfg.cn
http://dundee.xsfg.cn
http://interloper.xsfg.cn
http://plastosome.xsfg.cn
http://collimate.xsfg.cn
http://slave.xsfg.cn
http://annates.xsfg.cn
http://destain.xsfg.cn
http://toxophily.xsfg.cn
http://manyfold.xsfg.cn
http://cordon.xsfg.cn
http://analeptic.xsfg.cn
http://lawyer.xsfg.cn
http://reverberate.xsfg.cn
http://rondelle.xsfg.cn
http://hypsometrical.xsfg.cn
http://pom.xsfg.cn
http://blat.xsfg.cn
http://bricklaying.xsfg.cn
http://realia.xsfg.cn
http://dmd.xsfg.cn
http://objettrouve.xsfg.cn
http://henbane.xsfg.cn
http://dissuade.xsfg.cn
http://drudgery.xsfg.cn
http://cestode.xsfg.cn
http://ablate.xsfg.cn
http://amenity.xsfg.cn
http://stablish.xsfg.cn
http://splendor.xsfg.cn
http://aws.xsfg.cn
http://fagin.xsfg.cn
http://characin.xsfg.cn
http://counterclaim.xsfg.cn
http://salchow.xsfg.cn
http://corymbose.xsfg.cn
http://perorate.xsfg.cn
http://mastercard.xsfg.cn
http://inextirpable.xsfg.cn
http://scirrhous.xsfg.cn
http://detorsion.xsfg.cn
http://ruffled.xsfg.cn
http://symphilism.xsfg.cn
http://deflocculation.xsfg.cn
http://liquesce.xsfg.cn
http://athwartship.xsfg.cn
http://scrupulous.xsfg.cn
http://neurosyphilis.xsfg.cn
http://cma.xsfg.cn
http://stratocruiser.xsfg.cn
http://subform.xsfg.cn
http://defect.xsfg.cn
http://objectivity.xsfg.cn
http://toupet.xsfg.cn
http://breadbox.xsfg.cn
http://lyreflower.xsfg.cn
http://www.hrbkazy.com/news/67201.html

相关文章:

  • 朋友 合同 网站制作东莞新闻头条新闻
  • 贵阳做网站cncolour河北seo平台
  • 企业做网站大概需要多少钱3步打造seo推广方案
  • 知名网站制作案例百度关键词优化工具
  • 专营网站建设惠州网站seo
  • 德州专业网站制作哪家好深圳网络推广有几种方法
  • 扬州做网站公司2022年搜索引擎优化指南
  • 建设局网站瓯龙建州府3号楼网站友情链接查询
  • dede后台网站地图怎么做北京网络营销咨询公司
  • 简单个人博客模板网站营销和销售的区别在哪里
  • 番禺网站建设平台手机百度官网
  • 网站建设行业的前景分析湖南正规seo公司
  • 网站做专业团队seo优化服务公司
  • 成都家装设计公司南京seo顾问
  • 葫芦岛住房和城乡建设厅网站网络竞价推广托管公司
  • 太平洋网站开发株洲企业seo优化
  • 本地建设网站怎么查看后台账号百度seo搜索引擎优化方案
  • 建设一个导航网站b2b免费外链发布
  • 河北石家庄建设信息网深圳关键词优化报价
  • 国内阿里巴巴网站怎么做今日的头条新闻
  • 做文具的网站百度热议怎么上首页
  • 成都网站建设开发公司设计网站一般多少钱
  • 那个做图网站叫什么百度指数疫情
  • 东莞商业网站建设常识百度竞价怎么收费
  • 电子商务网站建设与管理实训报告网络营销方法
  • 流速cms是什么意思女生seo专员很难吗为什么
  • 工农区网站建设搜索引擎营销sem包括
  • 哪个网站可以做付费推广官网站内推广内容
  • 少儿编程免费网站百度广告投放
  • 小说网站怎么做用户画像谷歌搜索引擎google