gpt4 book ai didi

ubuntu - 在 Ubuntu 上安装 Hive

转载 作者:可可西里 更新时间:2023-11-01 14:25:28 26 4
gpt4 key购买 nike

我想在我的 Ubuntu 上安装 Hive。我阅读了 this文章,对我帮助很大。我做了除第 4 步以外的所有步骤。我不明白这一步应该做什么。

你能详细解释一下这一步吗?

最佳答案

第 1 步:下载并提取 Hadoop

Step 2 : Set JAVA_HOME path to conf/hadoop-env.sh//这一步是为hadoop设置java路径

第 3 步:conf/core-site.xml:

<configuration>
<property>
<name>fs.default.name</name> //Place your home folder here for using hadoop
<value>hdfs://localhost:9000</value>
</property>
</configuration>

第 4 步:conf/hdfs-site.xml:

<configuration>          //This setting for the number of replications of the file or you can add data node for the save the file
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>

第 5 步:conf/mapred-site.xml:

<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value> // add your master host in the place of localhost here
</property>
</configuration>

第 6 步:登录 SSH 本地主机并格式化新的分布式文件系统

bin/hadoop namenode -format

第 7 步:启动 hadoop 守护进程:

bin/start-all.sh

第八步:查看端口下的NameNode和JobTracker

http://localhost:50070/       //master
http://localhost:50030/ //slave

//最好尝试使用 ssh 来检查您的工作节点

第 9 步:下载并解压 Hive

第 10 步:设置下面的 Env 变量。

export HADOOP_HOME=<hadoop-install-dir>
export HIVE_HOME=<hive-install-dir>
export PATH=$HIVE_HOME/bin:$PATH
$HIVE_HOME/bin/hive

关于ubuntu - 在 Ubuntu 上安装 Hive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10842227/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com