锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久综合网络一区二区,亚洲第一精品久久忘忧草社区,亚洲成人一区http://www.aygfsteel.com/paulwong/category/53879.htmlzh-cnSun, 08 Sep 2013 05:49:44 GMTSun, 08 Sep 2013 05:49:44 GMT60Install Hadoop in the AWS cloudhttp://www.aygfsteel.com/paulwong/archive/2013/09/08/403816.htmlpaulwongpaulwongSun, 08 Sep 2013 05:45:00 GMThttp://www.aygfsteel.com/paulwong/archive/2013/09/08/403816.htmlhttp://www.aygfsteel.com/paulwong/comments/403816.htmlhttp://www.aygfsteel.com/paulwong/archive/2013/09/08/403816.html#Feedback0http://www.aygfsteel.com/paulwong/comments/commentRss/403816.htmlhttp://www.aygfsteel.com/paulwong/services/trackbacks/403816.html
  • get the Whirr tar file
    wget http://www.eu.apache.org/dist/whirr/stable/whirr-0.8.2.tar.gz
  • untar the Whirr tar file
    tar -vxf whirr-0.8.2.tar.gz
  • create credentials file
    mkdir ~/.whirr
    cp conf/credentials.sample ~/.whirr/credentials
  • add the following content to credentials file
    # Set cloud provider connection details
    PROVIDER=aws-ec2
    IDENTITY=<AWS Access Key ID>
    CREDENTIAL=<AWS Secret Access Key>
  • generate a rsa key pair
    ssh-keygen -t rsa -P ''
  • create a hadoop.properties file and add the following content
    whirr.cluster-name=whirrhadoopcluster
    whirr.instance-templates=1 hadoop-jobtracker+hadoop-namenode,2 hadoop-datanode+hadoop-tasktracker
    whirr.provider=aws-ec2
    whirr.private-key-file=${sys:user.home}/.ssh/id_rsa
    whirr.public-key-file=${sys:user.home}/.ssh/id_rsa.pub
    whirr.hadoop.version=1.0.2
    whirr.aws-ec2-spot-price=0.08
  • launch hadoop
    bin/whirr launch-cluster --config hadoop.properties
  • launch proxy
    cd ~/.whirr/whirrhadoopcluster/
    ./hadoop-proxy.sh
  • add a rule to iptables
    0.0.0.0/0 50030
    0.0.0.0/0 50070
  • check the web ui in the browser
    http://<aws-public-dns>:50030
  • add to /etc/profile
    export HADOOP_CONF_DIR=~/.whirr/whirrhadoopcluster/
  • check if the hadoop works
    hadoop fs -ls /



















    paulwong 2013-09-08 13:45 鍙戣〃璇勮
    ]]>
    主站蜘蛛池模板: 钦州市| 衡阳市| 海晏县| 铜川市| 隆昌县| 新乡县| 邹城市| 桓仁| 乐陵市| 瓮安县| 宁陕县| 曲周县| 张家口市| 东阿县| 庐江县| 汤原县| 天台县| 讷河市| 格尔木市| 航空| 渝中区| 分宜县| 怀安县| 临洮县| 汉中市| 长兴县| 循化| 铜川市| 大冶市| 保定市| 拉孜县| 确山县| 齐齐哈尔市| 金平| 仙居县| 宜春市| 石城县| 邹平县| 安义县| 读书| 铁岭县|