Showing posts with label hue. Show all posts
Showing posts with label hue. Show all posts

Tuesday, May 1, 2018

Python API to create Hue users/group using kerberos authentication

In this post i am going to show how to automate create/modify/delete users/groups in Cloudera Hue using python script.

Hue already simplified creating users and groups by sync ldap users and sync groups. But still in our client place we need to create hue users and groups manually since hdfs group mapping configured with ShellBasedUnixGroupsMapping and all the AD groups are created with Windows format.









Monday, November 6, 2017

Hue notebook Session 'xxx' not found." (error 404)

After we setup livy server with hue notebook, developers were able to run and save pyspark codes through hue notebook, however couldn't able to rerun the codes after they re-login with new session.


while troubleshooting we found that, hue is deleting the sessions once  users are logged-off

127.0.0.1 - - [06/Nov/2017:16:14:25 +0000] "GET /sessions/3 HTTP/1.1" 200 -
127.0.0.1 - - [06/Nov/2017:16:14:26 +0000] "GET /sessions/3 HTTP/1.1" 200 -
127.0.0.1 - - [06/Nov/2017:16:14:31 +0000] "POST /sessions/3/statements HTTP/1.1" 201 -
127.0.0.1 - - [06/Nov/2017:16:14:31 +0000] "GET /sessions/3/statements/0 HTTP/1.1" 200 -
127.0.0.1 - - [06/Nov/2017:16:14:31 +0000] "GET /sessions/3/log?from=0 HTTP/1.1" 200 -
127.0.0.1 - - [06/Nov/2017:16:25:46 +0000] "DELETE /sessions/3 HTTP/1.1" 200 -

So how to open the previously saved notebook sessions?

Solution is very simple:

Go to the notebook  --> open the saved session --> then click on below highlighted 


then click recreate, now you should be able to re-run the code.