0

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?

107
  • 552
  • 3
  • 26

1 Answers1

1

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/

PradeepKumbhar
  • 3,361
  • 1
  • 18
  • 31
  • how to identify on which host Hiveserver2 is running on ? – 107 Mar 04 '16 at 12:54
  • As far as creating the file in HDFS is concerned, you don't have to worry about on which host Hiveserver is located. Because when you put file in HDFS, its available for all hosts in the filesystem. – PradeepKumbhar Mar 07 '16 at 03:52
  • If you have Cloudera Manager configured, from UI, you can find out which service is running on which host. – PradeepKumbhar Mar 07 '16 at 03:53