Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

atlas falcon hook - Atlas hook failed (FalconHook:140) java.lang.IllegalStateException: No user logged into the system

Re: atlas falcon hook - Atlas hook failed (FalconHook:140) java.lang.IllegalStateException: No user logged into the system

Rising Star

Tried with kerberos:

[falcon@bigdata21 ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_1017
Default principal: falcon@WEBMEDIA.INT


Valid starting       Expires              Service principal
06/28/2016 20:49:22  06/29/2016 20:49:22  krbtgt/WEBMEDIA.INT@WEBMEDIA.INT
06/28/2016 20:49:27  06/29/2016 20:49:22  HTTP/bigdata21.webmedia.int@
06/28/2016 20:49:27  06/29/2016 20:49:22  HTTP/bigdata21.webmedia.int@WEBMEDIA.INT
[falcon@bigdata21 ~]$ curl -v -k --negotiate -u admin:admin -X POST -d @process.xml 'http://bigdata21.webmedia.int:15000/api/entities/submit/process' --header "Content-Type:text/xml"
* About to connect() to bigdata21.webmedia.int port 15000 (#0)
*   Trying 192.168.81.110...
* Connected to bigdata21.webmedia.int (192.168.81.110) port 15000 (#0)
> POST /api/entities/submit/process HTTP/1.1
> User-Agent: curl/7.29.0
> Host: bigdata21.webmedia.int:15000
> Accept: */*
> Content-Type:text/xml
> Content-Length: 461
>
* upload completely sent off: 461 out of 461 bytes
< HTTP/1.1 401 Authentication required
< WWW-Authenticate: Negotiate
< Set-Cookie: hadoop.auth=; Path=/; Domain=WEBMEDIA.INT; HttpOnly
< Content-Type: text/html; charset=iso-8859-1
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Length: 1420
< Server: Jetty(6.1.26.hwx)
<
* Ignoring the response-body
* Connection #0 to host bigdata21.webmedia.int left intact
* Issue another request to this URL: 'http://bigdata21.webmedia.int:15000/api/entities/submit/process'
* Found bundle for host bigdata21.webmedia.int: 0xde70f0
* Re-using existing connection! (#0) with host bigdata21.webmedia.int
* Connected to bigdata21.webmedia.int (192.168.81.110) port 15000 (#0)
* Server auth using GSS-Negotiate with user 'admin'
> POST /api/entities/submit/process HTTP/1.1
> Authorization: Negotiate YIICYQYJKoZIhvcSAQICAQBuggJQMIICTKADAgEFoQMCAQ6iBwMFACAAAACjggFiYYIBXjCCAVqgAwIBBaEOGwxXRUJNRURJQS5JTlSiKTAnoAMCAQOhIDAeGwRIVFRQGxZiaWdkYXRhMjEud2VibWVkaWEuaW50o4IBFjCCARKgAwIBEqEDAgEBooIBBASCAQC71Naa2MddsU3CvtA6Ove+3FcMSNWplqUuNunyHJwuRXQAeURnxKmlAmJ0EUA9VGwAGQhQ0yeesVmdgIcQodYIwskcqPE6N8O2mqz9hUqvxWXiS6Y/nQKGnlF21/b8crywo65U15GStQQbJ/EC121n2UMIYPsod4rmlK78j68nHE9VKcdjEx/sARTGXOj4hAa2E+WhTYpBkeJmy5DI0m6AKud2508E7rM/LOJi5XPJ5uw4w++ap0YO4ECX79rbxt+OQLLDquJDPki/Z3+4oaefpzeWfjnGS2GuU9Q1u22BbmJd/Kh2KFck4X+WXkwZvLUfaYY3F5Y3ZO7fidgoNmPZpIHQMIHNoAMCARKigcUEgcJOTLBv7JGOA0qSYjtltjUT/s7yqlkdkNh0qBrjkw8C9uUCdFjPodOROUKFOuv8zszq6fH5famHHWj1t4sUkQcs5Bhki6NJR1CMvAY7SbtSL9JUbZQBeqn67AXy/UgipEkrVGsZEdN+Gx1o2n6AHRuQe9QuAa4txQvKBYlGfmmlTSZR6Dq9X0BInsCw6fk1y8yccZAp1qwAAxT7qtJB4Jx45hRB4/r6E3yy+nD78thhVRbPIQSHHc4S453OIzvRqJT57Q==
> User-Agent: curl/7.29.0
> Host: bigdata21.webmedia.int:15000
> Accept: */*
> Content-Type:text/xml
> Content-Length: 461
>
* upload completely sent off: 461 out of 461 bytes
< HTTP/1.1 200 OK
< WWW-Authenticate: Negotiate YGoGCSqGSIb3EgECAgIAb1swWaADAgEFoQMCAQ+iTTBLoAMCARKiRARCiFmHuz+Ls6yq2TtQYf1BoUqkQa2rl7q7RCOyLa7SzY2RPT6DPbubKfye0F2h8ijQRg6nNs6VbPjd40ne+CanGL0B
< Set-Cookie: hadoop.auth="u=falcon&p=falcon@WEBMEDIA.INT&t=kerberos&e=1467172527701&s=h+/YvoSF2N37e2MxGqpb1SuAMAY="; Path=/; Domain=WEBMEDIA.INT; HttpOnly
< Content-Type: text/xml
< requestId: e09ab5a4-2571-4b00-9d68-c4152eddc4d2
< Content-Length: 280
< Server: Jetty(6.1.26.hwx)
<
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><status>SUCCEEDED</status><message>falcon/default/Submit successful (process) demo-process5


</message><requestId>falcon/default/846918683@qtp-1713833639-0 - e09ab5a4-2571-4b00-9d68-c4152eddc4d2


* Closing connection 0
</requestId></result>[falcon@bigdata21 ~]$

And situation is same:

2016-06-28 20:55:27,798 INFO  - [846918683@qtp-1713833639-0 - e09ab5a4-2571-4b00-9d68-c4152eddc4d2:falcon:POST//entities/submit/process] ~ Adding process entity to Atlas: demo-process5 (AtlasService:103)
2016-06-28 20:55:27,799 INFO  - [846918683@qtp-1713833639-0 - e09ab5a4-2571-4b00-9d68-c4152eddc4d2:falcon:POST//entities/submit/process] ~ PROCESS/demo-process5 is published into config store (AUDIT:264)
2016-06-28 20:55:27,799 INFO  - [846918683@qtp-1713833639-0 - e09ab5a4-2571-4b00-9d68-c4152eddc4d2:falcon:POST//entities/submit/process] ~ Submit successful: (PROCESS): demo-process5 (AbstractEntityManager:711)
2016-06-28 20:55:27,799 INFO  - [Atlas Logger 1:] ~ Entered Atlas hook for Falcon hook operation ADD_PROCESS (FalconHook:148)
2016-06-28 20:55:27,799 INFO  - [Atlas Logger 1:] ~ Atlas hook failed (FalconHook:140)
java.lang.IllegalStateException: No user logged into the system
        at org.apache.falcon.security.CurrentUser.getAuthenticatedUser(CurrentUser.java:150)
        at org.apache.atlas.falcon.hook.FalconHook.getAuthenticatedUser(FalconHook.java:156)
        at org.apache.atlas.falcon.hook.FalconHook.fireAndForget(FalconHook.java:150)
        at org.apache.atlas.falcon.hook.FalconHook.access$200(FalconHook.java:63)
        at org.apache.atlas.falcon.hook.FalconHook$2.run(FalconHook.java:138)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
2016-06-28 20:55:27,799 INFO  - [846918683@qtp-1713833639-0 - e09ab5a4-2571-4b00-9d68-c4152eddc4d2:falcon:POST//entities/submit/process] ~ {Action:submit, Dimensions:{colo=NULL, entityType=process}, Status: SUCCEEDED, Time-taken:96994780 ns} (METRIC:38)
2016-06-28 20:55:27,801 DEBUG - [846918683@qtp-1713833639-0 - e09ab5a4-2571-4b00-9d68-c4152eddc4d2:] ~ Audit: falcon/192.168.81.110 performed request http://bigdata21.webmedia.int:15000/api/entities/submit/process (192.168.81.110) at time 2016-06-28T17:55Z (FalconAuditFilter:86)
2016-06-28 20:55:27,801 INFO  - [846918683@qtp-1713833639-0 - e09ab5a4-2571-4b00-9d68-c4152eddc4d2:] ~ Audit: falcon@192.168.81.110 performed http://bigdata21.webmedia.int:15000/api/entities/submit/process (192.168.81.110) at 2016-06-28T17:55Z (AUDIT:48)
2016-06-28 20:55:27,801 INFO  - [846918683@qtp-1713833639-0 - e09ab5a4-2571-4b00-9d68-c4152eddc4d2:] ~ Audit: falcon@192.168.81.110 performed http://bigdata21.webmedia.int:15000/api/entities/submit/process (192.168.81.110) at 2016-06-28T17:55Z (AUDIT:48)
2016-06-28 20:56:23,529 INFO  - [Thread-17:] ~ config.location is set, using: /usr/local/falcon-0.11-SNAPSHOT/conf/runtime.properties (ApplicationProperties:120)
2016-06-28 20:56:23,530 INFO  - [Thread-17:] ~ Initializing org.apache.falcon.util.RuntimeProperties properties with domain falcon (ApplicationProperties:156)
Don't have an account?
Coming from Hortonworks? Activate your account here