hive--2014.6.10

1.

ps -ef |grep hive               //查看hive进程

ps 命令用于查看当前正在运行的进程。

-e 显示所有进程,环境变量
-f 全格式
-h 不显示标题
-l 长格式
-w 宽输出

 


 kill -9 6945 //关闭hive进程

-9 表示强迫进程立即停止


<>不等于。

2.

CREATE TABLE for_test(
  user STRING,
  uri STRING)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\001'
STORED AS TEXTFILE;
//因为hive默认用‘\001’ Crtl+A作为分隔符 所以FIELDS TERMINATED BY '\001'才能正常导入。


3.

insert overwrite local directory '/root/apache-hive-0.13.0-bin/wangzhi' select * from wangzhi ;
//导出wangzhi表内容 ,到wangzhi文件夹内


4.

LOAD DATA LOCAL INPATH '/root/apache-hive-0.13.0-bin/wangzhi.txt' INTO TABLE wangzhi;
//把文件导入表中


5.

vi编辑器:

:g/^s*$/d 删除所有空行

I -插入

:q 退出

:w 保存修改


6.

linux

rm -rf 删除文件夹


rm -f 删除文件


touch 1.txt 新建


mv  a  b  移动/重命名


7.

使用SecureCRT的SFTP功能
  在已连接的远程主机标签上点击右键选择“连接SFTP标签页”即可建立SFTP的连接,这是一个使用命令的连接会话不提供图形界面。
  目录转换:
         远程主机上:   可以使用所有shell中的目录和文件操作命令:ls,pwd,cd等等来对 远程主机上的目录进行更改操作,不能使用vi等文件编辑工具
         本地主机上:对本地目录进行操作需在以上命令前加上"l",即
   ls-》lls,pwd-》lpwd,cd-》lcd

(1)get从服务器下载文件
    get /var/www/fuyatao/index.php  /home/fuyatao/
    将从远程主机的  /var/www/fuyatao/目录下将 index.php 下载到本地  /home/fuyatao/目录下
(2)put向服务器上传文件
    put /home/fuyatao/downloads/Linuxgl.pdf /var/www/fuyatao/
    把本地 /home/fuyatao/downloads/目录下的 linuxgl.pdf文件上传至远程主机/var/www/fuyatao/ 目录下。


8.

TF*IDF






  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The hive-metastore-site.xml is a configuration file used by the Hive Metastore service in Apache Hive. The Metastore is a central repository that stores metadata information about Hive tables, partitions, and databases. The hive-metastore-site.xml file contains configuration properties that define how the Hive Metastore service runs. These properties include the database and table configurations, the location of the Hive Metastore service, the type of database used to store the metadata, and security settings. Here is an example of a hive-metastore-site.xml file: ```xml <?xml version="1.0"?> <configuration> <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://localhost/metastore_db?createDatabaseIfNotExist=true</value> <description>JDBC connect string for a JDBC metastore</description> </property> <property> <name>javax.jdo.option.ConnectionDriverName</name> <value>com.mysql.jdbc.Driver</value> <description>Driver class name for a JDBC metastore</description> </property> <property> <name>javax.jdo.option.ConnectionUserName</name> <value>hiveuser</value> <description>username to use against metastore database</description> </property> <property> <name>javax.jdo.option.ConnectionPassword</name> <value>password</value> <description>password to use against metastore database</description> </property> </configuration> ``` This configuration file specifies that the Hive Metastore service will use a MySQL database to store its metadata. It also defines the connection settings for the database, including the URL, driver name, username, and password. Overall, the hive-metastore-site.xml file is an important configuration file for managing the Hive Metastore service, and it should be configured carefully to ensure the proper functioning of the Hive service.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值