naru014 commented on pull request #3511:
URL: https://github.com/apache/nifi/pull/3511#issuecomment-647270637


   > @naru014 Yes, this is expected. This is somewhat a limitation of Livy 
0.5.0. Livy will not let you find sessions by name until v0.6.0. This version 
is available, but I don't have it in my environment.
   > 
   > There are two work arounds I've used.
   > 
   > * Use different accounts to run the session controllers.  The code does 
check to see if the username matches between the session it grabs from Livy and 
the configuration.
   > * Use multiple Livy servers, we used two different name nodes and setup an 
instance on each.
   > 
   > If you have Livy 0.6.0 you could update the code to work with session 
names. This would easily work around your issue, each session in a session 
controller could be named `session-1`, `session-2`, etc...
   > 
   > Note: Livy never updated the documentation when they added this feature 
([apache/incubator-livy#48](https://github.com/apache/incubator-livy/pull/48)). 
But it looks like you just replace the sessionId with the name when making 
calls.
   
   Thank you. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to