paulwong

          My Links

          Blog Stats

          常用鏈接

          留言簿(66)

          隨筆分類(1387)

          隨筆檔案(1145)

          文章分類(7)

          文章檔案(10)

          相冊(cè)

          收藏夾(2)

          AI

          Develop

          E-BOOK

          Other

          養(yǎng)生

          微服務(wù)

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          HADOOP1.0.3+HBASE0.94.1偽單機(jī)環(huán)境配置實(shí)錄

          1.在host中加入master 127.0.0.1 

          2.實(shí)現(xiàn)無需密碼登錄ssh 

          3.hadoop配置文件 

          core-site.xml 
             <?xml version="1.0"?>
          <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

          <!-- Put site-specific property overrides in this file. -->

          <configuration>

          <property>
            <name>hadoop.tmp.dir</name>
            <value>/Users/paul/Documents/PAUL/DOWNLOAD/SOFTWARE/DEVELOP/HADOOP/hadoop-tmp-data</value>
            <description>A base for other temporary directories.</description>
          </property>
           
          <property>
            <name>fs.default.name</name>
            <value>hdfs://master:9000</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>

          hdfs-site.xml 

          <?xml version="1.0"?>
          <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

          <!-- Put site-specific property overrides in this file. -->

          <configuration>


          <property>
            <name>dfs.replication</name>
            <value>1</value>
            <description>Default block replication.
            The actual number of replications can be specified when the file is created.
            The default is used if replication is not specified in create time.
            </description>
          </property>

          <!--
            <property>
              <name>dfs.name.dir</name>
              <value>/Users/paul/Documents/PAUL/DOWNLOAD/SOFTWARE/DEVELOP/HADOOP/hadoop-tmp-data/hdfs-data-name</value>
            </property>

            <property>
              <name>dfs.data.dir</name>
              <value>/Users/paul/Documents/PAUL/DOWNLOAD/SOFTWARE/DEVELOP/HADOOP/hadoop-tmp-data/hdfs-data</value>
            </property>
          -->

          </configuration>

          mapred-site.xml 

          <?xml version="1.0"?>
          <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

          <!-- Put site-specific property overrides in this file. -->

          <configuration>


          <property>
            <name>mapred.job.tracker</name>
            <value>master:9001</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>

          <property>
          <name>mapred.tasktracker.tasks.maximum</name>
          <value>8</value>
          <description>The maximum number of tasks that will be run simultaneously by a
          a task tracker
          </description>
          </property>

          </configuration>

          masters/slaves 
          master 

          4. 格式化namenode 

          5. 啟動(dòng)hadoop 

          6. hbase配置文件 

          hbase-site.xml 

          <?xml version="1.0"?>
          <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
          <!--
          /**
           * Copyright 2010 The Apache Software Foundation
           *
           * Licensed to the Apache Software Foundation (ASF) under one
           * or more contributor license agreements.  See the NOTICE file
           * distributed with this work for additional information
           * regarding copyright ownership.  The ASF licenses this file
           * to you under the Apache License, Version 2.0 (the
           * "License"); you may not use this file except in compliance
           * with the License.  You may obtain a copy of the License at
           *
           *     http://www.apache.org/licenses/LICENSE-2.0
           *
           * Unless required by applicable law or agreed to in writing, software
           * distributed under the License is distributed on an "AS IS" BASIS,
           * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           * See the License for the specific language governing permissions and
           * limitations under the License.
           */Users/paul/Documents/PAUL/DOWNLOAD/SOFTWARE/DEVELOP/HADOOP/hadoop-tmp-data
           */

          -->
          <configuration>

            <property>
              <name>hbase.rootdir</name>
              <value>hdfs://master:9000/hbase</value>
            </property>

            <property>
              <name>hbase.cluster.distributed</name>
              <value>true</value>
            </property>

            <property>
              <name>hbase.zookeeper.quorum</name>
              <value>localhost</value><!--單機(jī)配這個(gè)-->
            </property>

          </configuration>

          7. 啟動(dòng)hbase

          posted on 2012-10-01 22:15 paulwong 閱讀(837) 評(píng)論(0)  編輯  收藏 所屬分類: 云計(jì)算HBASE

          主站蜘蛛池模板: 千阳县| 新巴尔虎左旗| 日照市| 邳州市| 丹阳市| 红原县| 桦甸市| 柳江县| 樟树市| 靖宇县| 苏州市| 通州区| 枝江市| 宁安市| 海宁市| 子长县| 肇州县| 乐平市| 印江| 章丘市| 庆阳市| 安西县| 盐山县| 嫩江县| 云安县| 迭部县| 山西省| 海丰县| 阿尔山市| 平远县| 新干县| 敦化市| 海伦市| 绥滨县| 天全县| 墨脱县| 新昌县| 屯门区| 武山县| 格尔木市| 靖西县|