Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): SIMPLE authentication is not enabled. Available:[TOKEN, KERBEROS]
Actually, I want it to handle by the application. So I don't want to run kinit command.
so I added one class to project on GitHub. It will create a config file with given properties. and return back HTTP response with Authentication. So go through it and let me know its useful or not. if yes how?. https://github.com/dineshjadhav-oi/Oozie-User-Authentication
I ran the kinit command before launch application but it will shows following error:
IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 1. Exception = Could not authenticate, GSSException: No valid credent ials provided (Mechanism level: Server not found in Kerberos database (7) - LOOKING_UP_SERVER)
Can you paste the content of the following file you can scramble the REALM and other sensitive info:
- kinit command - krb5.conf - kdc.conf - kadm5.acl
Make sure that you have a local copy of krb5.conf on all hosts and that the kadmin is up and running
Sorry I cant provide you conf files. So if you send me to sample conf files then I can compare them with my config files.
There were a couple of errors in the kdc.conf,krb5.conf and kadm5.acl.
Please see the attached files. I would first ask you to backup your current kdc,krb5 and kadm5.acl files.
I have tried to separate the config files with --------
Please let me know if you have well understood if you need clarifications don't hesitate
I do the changes in conf files and run that code again, but it will give the same error. Can you give me working example?. Which connect to the oozie and get data from it with kerberos authentication. I think something is missing in the code, So I don't know what!