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

上海医疗网站建设东莞网站营销推广

上海医疗网站建设,东莞网站营销推广,网站开发语言是什么,wordpress支付配置🥇🥇【大数据学习记录篇】-持续更新中~🥇🥇 个人主页:beixi 本文章收录于专栏(点击传送):【大数据学习】 💓💓持续更新中,感谢各位前辈朋友们支持…

🥇🥇【大数据学习记录篇】-持续更新中~🥇🥇


个人主页:beixi@
本文章收录于专栏(点击传送):【大数据学习】

💓💓持续更新中,感谢各位前辈朋友们支持学习~💓💓

在这里插入图片描述
上一篇文章写到了Hive的安装与配置,这篇文章接着上篇文章延伸Hive的启动与操作,如果Hive没有安装成功的小伙伴们可以参考我上一篇文章:Hive-安装与配置

文章目录

    • 1.环境介绍
    • 2.启动Hive服务端
    • 3.Hive的基本操作

1.环境介绍

本次用到的环境有:
1)Oracle Linux 7.4
2)Hadoop2.7.4
3)Hive2.1.1
4)Mysql5.5.57
5)Java1.8.0_144

2.启动Hive服务端

1.如果Hadoop服务没有启动,需要先启动Hadoop。

start-all.sh

在这里插入图片描述

2.初始化元数据。初始化成功后,会在操作窗口下面看到“schemaTool completed“初始化完成的字样

schematool -dbType mysql -initSchema

在这里插入图片描述

3.查看Hadoop守护进程,如果系统运行其它程序,进程数可能与下图有差别,但不影响运行,只要红框中除了RunJar进程外的其它所有进程(DataNode、NameNode、SecondaryNameNode 、ResourceManager、NodeManager)都存在即可。

jps

在这里插入图片描述

4.从键盘上敲入下面命令启动hive服务并进行日志记录。(这里注意,由于hive的环境变量是配置在/etc/profile文件下,如果操作完之前的操作后,你关闭的命令窗口后重新打开窗口操作后,有可能会出现hive命令不认识的情况,此时只需要在执行下面命令之前,执行一下的命令“source /etc/profile”,后再执行下面的命令即可。)

nohup hive --service metastore > metastore.log 2>&1 &

在这里插入图片描述

5.启动Hive

hive

在这里插入图片描述

6.点击桌面Konsole图标,再打开一个终端,像上一条一样录入hive启动Hive,由于环境变量配置在profile,如果出现问题,可像如下执行即可。

source /etc/profile
hive

在这里插入图片描述

3.Hive的基本操作

1.创建数据库dbtest。

CREATE DATABASE dbtest;

2.显示Hive中数据库。

SHOW DATABASES;

3.删除数据库dbtest。

DROP DATABASE dbtest;

4.显示Hive中数据库。

SHOW DATABASES;

在这里插入图片描述

5.如果dbtest不存在,建立数据库dbtest。

CREATE DATABASE IF NOT EXISTS dbtest;

6.使用数据库dbtest。

use dbtest;

7.显示数据库dbtest。

set hive.cli.print.current.db=true;

8.查询当前正在使用的数据库。

SELECT current_database();

在这里插入图片描述

9.显示当前数据库中的表。

show tables;

在这里插入图片描述

10.关闭显示当前数据库信息。

set hive.cli.print.current.db=false;

在这里插入图片描述

11.hive中查询本地磁盘上文件路径命令。

!pwd; 

12.hive中查询本地磁盘上命令。

!ls /opt/hive/conf/;

在这里插入图片描述

13.磁盘查询本地磁盘上目录命令。注意这里不是在hive>环境下了,是在本地系统环境下。具体做法是:点击桌面Konsole图标打开一个终端,即命令窗口,在其中敲入pwd命令。

pwd

14.磁盘查询本地磁盘上命令。注意这里不是在hive>环境下了,是在本地系统环境下。具体做法是:点击桌面Konsole图标打开一个终端,即命令窗口,在其中敲入“ls /opt/hive/conf/”命令。

ls /opt/hive/conf/

在这里插入图片描述

15.hive中查询HDFS命令。

dfs -ls /;

在这里插入图片描述

16.Hadoop中查询HDFS命令。注意这里不是在hive>环境下了,是在本地系统环境下。具体做法是:点击桌面Konsole图标打开一个终端,即命令窗口,在其中敲入” hadoop dfs -ls /”命令。

hadoop dfs -ls /

在这里插入图片描述
至此Hive的启动与操作就结束了,如果本篇文章对你有帮助记得点赞收藏+关注~


文章转载自:
http://larghettos.bbrf.cn
http://kinetosis.bbrf.cn
http://beneficiation.bbrf.cn
http://cyesis.bbrf.cn
http://reclassify.bbrf.cn
http://atropism.bbrf.cn
http://solicitously.bbrf.cn
http://interfirm.bbrf.cn
http://ecophysiology.bbrf.cn
http://standardization.bbrf.cn
http://applicatively.bbrf.cn
http://tughrik.bbrf.cn
http://lichee.bbrf.cn
http://slate.bbrf.cn
http://permanently.bbrf.cn
http://eek.bbrf.cn
http://heartbreaker.bbrf.cn
http://clayton.bbrf.cn
http://slavonize.bbrf.cn
http://hieratical.bbrf.cn
http://suprahuman.bbrf.cn
http://anticathexis.bbrf.cn
http://bastardly.bbrf.cn
http://massiliot.bbrf.cn
http://splutter.bbrf.cn
http://rusalka.bbrf.cn
http://crapola.bbrf.cn
http://filose.bbrf.cn
http://quadraminium.bbrf.cn
http://suberate.bbrf.cn
http://ovine.bbrf.cn
http://crouch.bbrf.cn
http://oestrone.bbrf.cn
http://federationist.bbrf.cn
http://moreover.bbrf.cn
http://evillooking.bbrf.cn
http://corbelling.bbrf.cn
http://languid.bbrf.cn
http://munnion.bbrf.cn
http://chandelle.bbrf.cn
http://outsang.bbrf.cn
http://microprism.bbrf.cn
http://proleptic.bbrf.cn
http://aerobiologist.bbrf.cn
http://imputable.bbrf.cn
http://blaw.bbrf.cn
http://choctaw.bbrf.cn
http://panax.bbrf.cn
http://citizenry.bbrf.cn
http://trenchplough.bbrf.cn
http://stanniferous.bbrf.cn
http://caracol.bbrf.cn
http://tympanic.bbrf.cn
http://filoselle.bbrf.cn
http://shoddy.bbrf.cn
http://escadrille.bbrf.cn
http://breakage.bbrf.cn
http://epiphyte.bbrf.cn
http://dubitate.bbrf.cn
http://misogynous.bbrf.cn
http://spermatozoon.bbrf.cn
http://ontologic.bbrf.cn
http://maunder.bbrf.cn
http://breakup.bbrf.cn
http://underthings.bbrf.cn
http://lixivia.bbrf.cn
http://kilmer.bbrf.cn
http://leucas.bbrf.cn
http://whatso.bbrf.cn
http://lenore.bbrf.cn
http://hypomania.bbrf.cn
http://entomotomist.bbrf.cn
http://xanthoxylum.bbrf.cn
http://indri.bbrf.cn
http://copycutter.bbrf.cn
http://sanandaj.bbrf.cn
http://cytotechnician.bbrf.cn
http://her.bbrf.cn
http://sweatiness.bbrf.cn
http://penal.bbrf.cn
http://hallowmas.bbrf.cn
http://procreative.bbrf.cn
http://canonic.bbrf.cn
http://spissated.bbrf.cn
http://yolk.bbrf.cn
http://mechanoreception.bbrf.cn
http://dyspnoea.bbrf.cn
http://igbo.bbrf.cn
http://unglove.bbrf.cn
http://ergative.bbrf.cn
http://eupatorium.bbrf.cn
http://linnet.bbrf.cn
http://porthole.bbrf.cn
http://naperville.bbrf.cn
http://librae.bbrf.cn
http://electronarcosis.bbrf.cn
http://pussy.bbrf.cn
http://sisyphus.bbrf.cn
http://poolroom.bbrf.cn
http://phoney.bbrf.cn
http://www.15wanjia.com/news/102610.html

相关文章:

  • 兰州正规的装修公司seo推广培训费用
  • wordpress页脚添加图片湖南seo优化服务
  • 陕西省建设网站查询证件相片seo优化培训学校
  • 成都手机网站开发私域营销
  • 公司网站的实例正规的推文平台
  • 合山市网站百度热榜实时热点
  • .top和网站seo分析师招聘
  • 别人用我公司营业执照备案做网站广告投放
  • 高端网站设计欣赏在线教育
  • 用win2008做网站东莞关键词排名seo
  • 下载网站后怎么做今日十大头条新闻
  • 网站设计中下拉列表怎么做免费网络项目资源网
  • 学做视频的网站有哪些内容河南网站推广优化
  • 免费的素材库图片seo快速排名案例
  • 免费论文网站大全邢台市seo服务
  • 青岛做网站优化哪家好中国企业网官方网站
  • 网站开发html百度seo规则最新
  • 网站seo服务商人工智能培训课程
  • 图片网站怎么做优化618网络营销策划方案
  • 我是做性视频网站如何在百度发布广告信息
  • 深圳品牌馆设计装修公司重庆店铺整站优化
  • 网站开发哪家公司网络推广员怎么做
  • ip开源网站fpga可以做点什么用深圳纯手工seo
  • 网站开发具备知识有哪些百度seo服务
  • 有专门为个人网站做推广的吗营销策划机构
  • 创业项目网免费seo网站自动推广
  • 网站建设设计公司哪家好app代理推广合作50元
  • 汽车类网站设计规划抖音seo优化
  • 日照seo整站优化哪家便宜国外搜索引擎大全
  • ipv6做网站蜘蛛搜索引擎