The way run_sentry works - it actually runs mvn exec:java which builds code
in your local repo and creates jar files. If you run this as root, these
files will be owned by root which is not good, so please do not run this
via sudo to save you some trouble.

A simple way to use it to run sentry:

run_sentry --command  service -conffile /path/to/sentry-site.xml

This should work as long as your normal things (like mvn install
-DskipTests) is working.

Best,

- Alex

On Tue, Jan 30, 2018 at 1:41 PM, Xinran Yu Tinney <yuxinran8...@gmail.com>
wrote:

> Hi, Sasha, what do you mean change ownership of files?
> Also, Lina, I have run the command but it seems something removed the
> JAVA_HOME, please see the attachment.
>
> 2018-01-12 16:57 GMT-06:00 Alexander Kolbasov <ak...@cloudera.com>:
>
>> Running it via studio is not the best idea since it will change ownership
>> of files in your repo. Sentry doesn't need root privileges.
>>
>> > On Jan 12, 2018, at 14:10, Na Li <lina...@cloudera.com> wrote:
>> >
>> > one example
>> >
>> > to creating schema
>> > - command: sudo ./run_sentry.sh --command  schema-tool --conffile
>> > sentry-site.xml --dbType mysql --initSchema
>> >
>> > On Fri, Jan 12, 2018 at 3:18 PM, Xinran Yu Tinney <
>> yuxinran8...@gmail.com>
>> > wrote:
>> >
>> >> What are the arguments that can be used? I have attached a screenshot,
>> >> using "service", but seems not working.
>> >>
>> >> 2018-01-12 14:56 GMT-06:00 Alexander Kolbasov <ak...@cloudera.com>:
>> >>
>> >>> It is easy. Your current directory should be within the got repo and
>> the
>> >>> actual script can be anywhere. Just run it with whatever argument you
>> want
>> >>> to pass to main. The script users maven to build and run sentry so it
>> >>> doesn't depend on any class path.
>> >>>
>> >>> On Fri, Jan 12, 2018 at 12:30 Xinran Yu Tinney <
>> yuxinran8...@gmail.com>
>> >>> wrote:
>> >>>
>> >>>> Hi,
>> >>>>   Does anyone know how to run bin/run_sentry.sh? Thanks!
>> >>>>
>> >>>>
>> >>>> Xinran
>> >>>>
>> >>>
>> >>
>> >>
>>
>
>

Reply via email to