hbase-site.xml、hive-site.xml 的配置
2020-07-12 16:58
92 查看
hbase-env.sh
#The java implementation to use. Java 1.7+ required. export JAVA_HOME=/opt/jdk #Tell HBase whether it should manage it's own instance of Zookeeper or not. export HBASE_MANAGES_ZK=false
hbase-site.xml
<property> <name>hbase.rootdir</name> <value>hdfs://192.168.56.137:9000/hbase</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/opt/hbase</value> </property> <property> <name>hbase.zookeeper.property.clientPort</name> <value>2181</value> </property>
2.配置hbase环境变量
export HBASE_HOME=/opt/hbase120 export PATH=$PATH:$HBASE_HOME/bin
vi /etc/profile
export hive_home=/usr/soft/apache-hive-1.2.2-bin export path=$path:$hive_home/bin
e)hive-site.xml
i.删除里面内容
<!-- 在configuration中加入配置 --> <property> <name>hive.metastore.warehouse.dir</name> <value>/usr/soft/apache-hive-1.2.2-bin/warehouse</value> </property> <property> <name>hive.metastore.local</name> <value>true</value> </property> <!-- 如果是远程mysql数据库的话需要在这里写入远程的IP或hosts --> <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://127.0.0.1:3306/hive?createDatabaseIfNotExist=true</value> </property> <property> <name>javax.jdo.option.ConnectionDriverName</name> <value>com.mysql.jdbc.Driver</value> </property> <property> <name>javax.jdo.option.ConnectionUserName</name> <value>root</value> </property> <property> <name>javax.jdo.option.ConnectionPassword</name> <value>ok</value> </property>
下载mysql驱动包存放到/usr/soft/apache-hive-1.2.2-bin/lib下
相关文章推荐
- hbase 系统 hbase-site.xml 配置说明
- hbase-site.xml 配置详解
- hive连接mysql中hive-site.xml的数据库配置文件
- 关于hbase中的hbase-site.xml 配置详解
- hbase-site.xml 配置详解
- Hive环境搭建hive-site.xml配置
- hadoop 2.2.X 配置参数说明:hbase-site.xml
- hive 解决hive-site.xml 配置问题
- Hive配置hive-site.xml后启动出错
- hbase-site.xml配置文件
- hbase-site.xml配置
- hbase-site.xml 配置详解
- hive-site.xml的数据库配置文件
- HDFD 四个配置文件(core-site.xml hdfs-site.xml mapred-site.xml yarn-site.xml )的简单介绍
- 修改配置文件conf/hive-site.xml
- hbase-site.xml的配置文件
- Hive配置文件hive-site.xml
- hbase的hbase-site.xml配置文件代码
- hbase 配置(hbase-site.xml)和基本使用
- hbase-site.xml 配置详解