zoukankan      html  css  js  c++  java
  • hadoophttpfs

    Hadoop-httpfs: client向httpfs提交文件操作,由httpfs和集群交互; 优势:client不必访问集群

    WebHDFS API: https://archive.cloudera.com/cdh5/cdh/5/hadoop/hadoop-project-dist/hadoop-hdfs/WebHDFS.html

    coludera install: https://www.cloudera.com/documentation/enterprise/5-10-x/topics/cdh_ig_httpfs_install.html

    yum install hadoop-httpfs

    1. /etc/hadoop-httpfs/conf/httpfs-site.xml 

    <property>
      <name>httpfs.hadoop.config.dir</name>
      <value>/etc/hadoop/conf</value>
    </property>
    <property>
      <name>httpfs.authentication.type</name>
      <value>kerberos</value>
    </property>
    <property>
      <name>httpfs.hadoop.authentication.type</name>
      <value>kerberos</value>
    </property>
    <property>
      <name>httpfs.authentication.kerberos.principal</name>
      <value>HTTP/cdd03@PASC.COM</value>
    </property>
    <property>
      <name>httpfs.authentication.kerberos.keytab</name>
      <value>/etc/security/keytab/httpfs.keytab</value>
    </property>
    <property>
      <name>httpfs.hadoop.authentication.kerberos.principal</name>
      <value>httpfs/cdd03@PASC.COM</value>
    </property>
    <property>
      <name>httpfs.hadoop.authentication.kerberos.keytab</name>
      <value>/etc/security/keytab/httpfs.keytab</value>
    </property>

    2. /etc/hadoop/conf/core-site.xml    

    <property>
      <name>hadoop.proxyuser.httpfs.hosts</name>
      <value>*</value>
    </property>
    <property>
      <name>hadoop.proxyuser.httpfs.groups</name>
      <value>*</value>
    </property>

    3. 重启namenode,启动httpfs服务

    使用:curl  --negotiate -u :  http://cdd03:14000/webhdfs/v1/tmp/?op=liststatus

    红色地方必须使用:hostname(kerberos认证会用到)

  • 相关阅读:
    linux下LD_PRELOAD的用处
    三个通用的脚本,处理MySQL WorkBench导出表的JSON数据进SQLITE3
    ubuntu 18.04下,KMS_6.9.1服务器启动后,客户端连接一段时间因为libnice而crash的问题修复
    Daliy Algorithm(线段树&组合数学) -- day 53
    Daliy Algorithm(链表&搜索&剪枝) -- day 52
    Daliy Algorithm(二分&前缀和) -- day 51
    每日算法
    动态规划--01背包模型
    每日算法
    每日算法
  • 原文地址:https://www.cnblogs.com/moonypog/p/11051335.html
Copyright © 2011-2022 走看看