0

我已经为 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
4

1 回答 1

0

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

  1. 启用游侠
  2. 更新依赖配置
  3. 重启一切

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

于 2019-01-17T16:30:26.110 回答