linuxhadoophivecloudera-cdhapache-sentry

how to create ini file as HDFS on linux


I am new to linux. Cloudera documentation has mentioned creating sentry-provider.ini file on cloudera CHD 5.4 as HDFS file. I am not finding good article on how to create ini file on linux.

I am trying to configure Apache Sentry on cloudera setup to have role based security on hive metadata

how to create ini file as HDFS on linux?


Solution

  • Simple way is: You can create this "sentry-provider.ini" file on your local (on linux terminal)

    vi sentry-provider.ini
    

    Then put the content specified at this link in the file by pressing i and then pasting the content. After this put the file on HDFS file system using command :

    hdfs dfs -copyFromLocal sentry-provider.ini etc/sentry/
    

    Remember that the path etc/sentry/ is the path on HDFS from your user's home directory which is typically /user/username/