Executed the command "sudo -u oozie ./bin/oozie-setup.sh sharelib create -fs hdfs://localhost:54310 -locallib oozie-sharelib-4.1.0.tar.gz"
Iam getting the error "Error: E0902: Exception occured: [User: oozie is not allowed to impersonate oozie]" when trying to execute sharelib command.
In core-site.xml in hadoop conf, change value as
<property>
<name>hadoop.proxyuser.oozie.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.oozie.groups</name>
<value>*</value>
</property>
And restart hadoop services and try again