| 已经安装了jdk、mysql、hadoop |
| |
| 主机名:master |
| 映射:192.168.128.129 master |
- 将apache-hive-2.3.9-bin.tar.gz上传到服务器
| |
| tar -zxvf apache-hive-2.3.9-bin.tar.gz |
| |
| mv /home/apache-hive-2.3.9-bin/* /usr/local/software/hive-2.3.9 |
| |
| |
| vi /etc/profile |
| |
| export HIVE_HOME=/usr/local/software/hive-2.3.9 |
| export HIVE_CONF_DIR=$HIVE_HOME/conf |
| export PATH=$HIVE_HOME/bin:$PATH |
| |
| source /etc/profile |
| create database hive_metastore default charset=utf8; |
| mv mysql-connector-java-8.0.30.jar /usr/local/software/hive-2.3.9/lib |
| vi /usr/local/software/hive-2.3.9/conf/hive-site.xml |
| |
| <configuration> |
| <property> |
| <name>hive.metastore.warehouse.dir</name> |
| <value>hdfs://master:9000/user/hive/warehouse</value> |
| </property> |
| <property> |
| <name>javax.jdo.option.ConnectionURL</name> |
| <value>jdbc:mysql://master:3306/hive_metastore</value> |
| <description>JDBC connect string for a JDBC metastore</description> |
| </property> |
| <property> |
| <name>javax.jdo.option.ConnectionDriverName</name> |
| <value>com.mysql.cj.jdbc.Driver</value> |
| <description>Driver class name for a JDBC metastore</description> |
| </property> |
| <property> |
| <name>javax.jdo.option.ConnectionUserName</name> |
| <value>root</value> |
| <description>username to use against metastore database</description> |
| </property> |
| <property> |
| <name>javax.jdo.option.ConnectionPassword</name> |
| <value>123456</value> |
| <description>password to use against metastore database</description> |
| </property> |
| <property> |
| <name>hive.metastore.uris</name> |
| <value>thrift://master:9083</value> |
| </property> |
| <property> |
| <name>hive.metastore.schema.verification</name> |
| <value>false</value> |
| </property> |
| <property> |
| <name>datanucleus.schema.autoCreateAll</name> |
| <value>true</value> |
| </property> |
| <property> |
| <name>hive.server2.authentication</name> |
| <value>NONE</value> |
| </property> |
| <property> |
| <name>hive.server2.enable.doAs</name> |
| <value>false</value> |
| </property> |
| </configuration> |
| schematool -dbType mysql -initSchema |
| |
| mysql.server start |
| |
| start-dfs.sh |
| start-yarn.sh |
| |
| |
| [root@master conf] |
| [2] 8619 |
| 2023-12-14 17:46:57: Starting Hive Metastore Server |
| SLF4J: Class path contains multiple SLF4J bindings. |
| SLF4J: Found binding in [jar:file:/usr/local/software/hive-2.3.9/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] |
| SLF4J: Found binding in [jar:file:/usr/local/software/hadoop-2.9.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] |
| SLF4J: See http://www.slf4j.org/codes.html |
| SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] |
| |
| |
| [root@master ~] |
| [1] 8732 |
| 2023-12-14 17:47:37: Starting HiveServer2 |
| SLF4J: Class path contains multiple SLF4J bindings. |
| SLF4J: Found binding in [jar:file:/usr/local/software/hive-2.3.9/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] |
| SLF4J: Found binding in [jar:file:/usr/local/software/hadoop-2.9.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] |
| SLF4J: See http://www.slf4j.org/codes.html |
| SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] |
| |
| |
| [root@master ~] |
| 7794 NameNode |
| 7925 DataNode |
| 8839 Jps |
| 8249 ResourceManager |
| 8619 RunJar |
| 8732 RunJar |
| 8095 SecondaryNameNode |
| |
| |
| [root@master ~] |
| SLF4J: Class path contains multiple SLF4J bindings. |
| SLF4J: Found binding in [jar:file:/usr/local/software/hive-2.3.9/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] |
| SLF4J: Found binding in [jar:file:/usr/local/software/hadoop-2.9.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] |
| SLF4J: See http://www.slf4j.org/codes.html |
| SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] |
| Connecting to jdbc:hive2://root@master:10000 |
| Connected to: Apache Hive (version 2.3.9) |
| Driver: Hive JDBC (version 2.3.9) |
| Transaction isolation: TRANSACTION_REPEATABLE_READ |
| Beeline version 2.3.9 by Apache Hive |
| 0: jdbc:hive2://root@master:10000> show databases; |
| +----------------+ |
| | database_name | |
| +----------------+ |
| | default | |
| +----------------+ |
| 1 row selected (1.46 seconds) |
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决
· 提示词工程——AI应用必不可少的技术
2021-12-13 使用命令构建vue项目
2021-12-13 vue项目入口main.js配置