随笔 - 1357  文章 - 0  评论 - 1104  阅读 - 1941万

hadoop配置

1.hadoop
a.sudo gedit /home/hadoop/hadoop-1.1.1/conf/core-site.xml

复制代码
<configuration>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>/home/hadoop/hadoop-datastore/</value>
        <description>A base for other temporary directories.</description>
    </property>
 
    <property>
    <name>fs.default.name</name>
    <value>hdfs://localhost:54310</value>
    <description>The name of the default file system.  A URI whose
        scheme and authority determine the FileSystem implementation.  The
        uri's scheme determines the config property (fs.SCHEME.impl) naming
        the FileSystem implementation class.  The uri's authority is used to
        determine the host, port, etc. for a filesystem.</description>
    </property>
</configuration>
复制代码

b. sudo gedit /home/hadoop/hadoop-1.1.1/conf/mapred-site.xml

复制代码
<configuration>
    <property>
        <name>mapred.job.tracker</name>
        <value>localhost:54311</value>
        <description>The host and port that the MapReduce job tracker runs
        at.  If "local", then jobs are run in-process as a single map
        and reduce task.
    </description>
    </property>
</configuration>
复制代码


2.hbase
a.sudo gedit /home/hadoop/conf/hbase-site.xml

复制代码
<configuration>
    <property>
        <name>hbase.rootdir</name>
        <value>hdfs://192.168.11.157:54310/hbase</value>
    </property>
    <property>
        <name>hbase.cluster.distributed</name>
        <value>true</value>
    </property>
    <property>
        <name>hbase.master</name>
        <value>192.168.11.157:54311</value>
    </property>
    <property>
        <name>hbase.zookeeper.quorum</name>
        <value>192.168.11.157</value>
    </property>
</configuration>
复制代码


3.hive
a.sudo gedit hive-default.xml
b.sudo gedit hive-site.xml

复制代码
<configuration>
    <property>
        <name>hive.metastore.local</name>
        <value>true</value>
    </property>
    <property>
        <name>javax.jdo.option.ConnectionURL</name>
        <value>jdbc:mysql://192.168.1.100:3306/hive?characterEncoding=UTF-8</value>
    </property>
    <property>
        <name>javax.jdo.option.ConnectionDriverName</name>
        <value>com.mysql.jdbc.Driver</value>
    </property>
    <property>
        <name>javax.jdo.option.ConnectionUserName</name>
        <value>hive</value>
    </property>
    <property>
        <name>javax.jdo.option.ConnectionPassword</name>
        <value>mysql</value>
    </property>
</configuration>
复制代码

 

posted on   Ruthless  阅读(489)  评论(0编辑  收藏  举报
编辑推荐:
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 写一个简单的SQL生成工具
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
历史上的今天:
2011-03-11 sax解析xml案例二
2011-03-11 sax解析xml案例一
2011-03-11 设置背景图片占满整个浏览器屏幕
< 2013年3月 >
24 25 26 27 28 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31 1 2 3 4 5 6

点击右上角即可分享
微信分享提示