【问题标题】:Apache Ranger 2.0.0-SNAPSHOT: unable to install and configure HDFS pluginApache Ranger 2.0.0-SNAPSHOT:无法安装和配置 HDFS 插件
【发布时间】:2019-06-30 11:45:57
【问题描述】:

我已经为 apache hadoop-2.7.7 安装了 ranger-admin 和 ranger-usersync。当我尝试安装相同的 ranger-hdfs-plugin 时,相同的服务未列在 ranger-admin UI 上(在服务管理器下)。下面提供了 ranger-hdfs-plugin 的 install.properties 文件:

    POLICY_MGR_URL=http://localhost:6080
    #
    # This is the repository name created within policy manager
    #
    # Example:
    # REPOSITORY_NAME=hadoopdev
    #
    REPOSITORY_NAME=hadoopdev
    #
    # Set hadoop home when hadoop program and Ranger HDFS Plugin are not in the
    # same path.
    #
    COMPONENT_INSTALL_DIR_NAME=

    # AUDIT configuration with V3 properties
    # Enable audit logs to Solr
    #Example
    #XAAUDIT.SOLR.ENABLE=true
    #XAAUDIT.SOLR.URL=http://localhost:6083/solr/ranger_audits
    #XAAUDIT.SOLR.ZOOKEEPER=
    #XAAUDIT.SOLR.FILE_SPOOL_DIR=/var/log/hadoop/hdfs/audit/solr/spool

    XAAUDIT.SOLR.ENABLE=false
    XAAUDIT.SOLR.URL=http://localhost:6083/solr/ranger_audits
    XAAUDIT.SOLR.USER=NONE
    XAAUDIT.SOLR.PASSWORD=NONE
    XAAUDIT.SOLR.ZOOKEEPER=NONE
    XAAUDIT.SOLR.FILE_SPOOL_DIR=/var/log/hadoop/hdfs/audit/solr/spool

    XAAUDIT.HDFS.ENABLE=true
    XAAUDIT.HDFS.HDFS_DIR=hdfs://ubuntu3.dap.com:9000/ranger/audit
    XAAUDIT.HDFS.FILE_SPOOL_DIR=/var/log/hadoop/hdfs/audit/hdfs/spool

    #
    # Custom component user
    # CUSTOM_COMPONENT_USER=<custom-user>
    # keep blank if component user is default
    CUSTOM_USER=hdfs


    #
    # Custom component group
    # CUSTOM_COMPONENT_GROUP=<custom-group>
    # keep blank if component group is default
    CUSTOM_GROUP=hadoop

    XAAUDIT.DB.IS_ENABLED=true
    XAAUDIT.DB.FLAVOUR=MYSQL
    XAAUDIT.DB.HOSTNAME=localhost
    XAAUDIT.DB.DATABASE_NAME=ranger_audit
    XAAUDIT.DB.USER_NAME=rangerlogger
    XAAUDIT.DB.PASSWORD=rangerlogger

【问题讨论】:

    标签: hadoop hdfs apache-ranger


    【解决方案1】:

    这是在 HDP hadoop 发行版中执行此操作的方法。如您所见,有多个步骤,我怀疑您可能跳过了一个。

    1. 启用游侠
    2. 更新相关配置
    3. 重启一切

    https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/content/hdfs_plugin.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-24
      • 1970-01-01
      • 1970-01-01
      • 2023-02-03
      • 1970-01-01
      • 2018-02-02
      • 1970-01-01
      • 2020-01-01
      相关资源
      最近更新 更多