Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Download and install Hive by following the instructions available on the apache hive website. Hive Install instructions
            cd /usr/local
            sudo tar zxf ~/dev/apache-hive-0.14.0-bin.tar.gz
            sudo ln -s ~/dev/apache-hive-0.14.0-bin.tar.gz hive
            cd hive
  • Note: Hive Server 2 doesn’t start unless HADOOP_VERSION is exported to bashrc 

...

Install/Configure Ranger Storm Plugin: 

...

Ranger Storm plugin integrates with Storm to enforce authorization policies. To verify that, first Apache Storm needs to be installed. If not already installed, follow below steps.

    • cd /usr/local

    • sudo tar zxf ~/dev/ranger/target/ranger-0.4.0-storm-plugin.tar.gz

    • sudo ln -s ranger-0.4.0-storm-plugin ranger-storm-plugin

    • cd ranger-storm-plugin

Now let’s edit the install.properties file.  Here are the relevant lines that you should edit:

    • Change the insall.properties file

    • POLICY_MGR_URL=http://localhost:6080

    • REPOSITORY_NAME=stormdev

    • KNOX_HOME=/usr/local/storm

    • XAAUDIT.DB.IS_ENABLED=true

    • XAAUDIT.DB.HOSTNAME=localhost

    • XAAUDIT.DB.DATABASE_NAME=ranger

    • XAAUDIT.DB.USER_NAME=rangerlogger

    • XAAUDIT.DB.PASSWORD=rangerlogger

 Now enable the storm-plugin by running the enable-storm-plugin.sh command (Remember to set JAVA_HOME)

    • cd /usr/local/ranger-storm-plugin

    • ./enable-storm-plugin.sh

Now edit the xasecure-audit.xml file. Here are the relevant lines that you should edit :

  • cd /usr/local/storm/conf

  • change the xasecure-audit.xml file.

<property>
<name>xasecure.audit.jpa.javax.persistence.jdbc.url</name>
<value>jdbc:mysql://localhost/ranger</value>
<
/property>

<property>
<name>xasecure.audit.jpa.javax.persistence.jdbc.user</name>
<value>rangerlogger</value>
</property>

<property>
<name>xasecure.audit.jpa.javax.persistence.jdbc.password</name>
<value>rangerlogger</value>
</property>

  • Once these changes are done Restart Storm

  • This should start the association of ranger-storm-plugin  with storm.

  • You can verify by logging into the Ranger Admin Web interface ->  Audit -> Agents