Member since
09-17-2015
436
Posts
736
Kudos Received
81
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3642 | 01-14-2017 01:52 AM | |
5642 | 12-07-2016 06:41 PM | |
6460 | 11-02-2016 06:56 PM | |
2132 | 10-19-2016 08:10 PM | |
5591 | 10-19-2016 08:05 AM |
06-10-2016
10:47 PM
Upvoted! If the notebook works on sandbox, pls consider including it in https://github.com/hortonworks-gallery/zeppelin-notebooks. This is actually the set of demo notebooks that get automatically installed when zeppelin is installed via Ambari
... View more
06-09-2016
03:16 AM
Per the JIRA from Jeff, looks like the feature did not work prior to Ambari 2.2+. The relevant doc section in Ambari 2.2.0.0 looks ok so I think we are good. Although it might be good to update older docs to explicitly call out the fact that running queries as logged in user won't work.
... View more
05-27-2016
06:39 AM
1 Kudo
Zeppelin interpreters allow Zeppelin to submit requests to multiple languages or data processing engines (like Scala, PySpark, Shell, Hive, HBase etc). More details available at https://zeppelin.incubator.apache.org/docs/0.5.6-incubating/manual/interpreters.html However, before you can use interpreters, in most cases you need to configure them (e.g. point hive interpreter to server/port where HiveServer2 is running on your cluster). You can do this manually via the Zeppelin UI by clicking on the Interpreter tab. However, in some cases you will want to automate/script out this step. Below is some sample code on how to do this. To run, on the host where Zeppelin is running, copy/paste the code into a file called zeppelin.py using your favourite editor, and then run it by typing: python zeppelin.py Sample code: #!/usr/local/bin/python
def post_request(url, body):
import json, urllib2
encoded_body = json.dumps(body)
req = urllib2.Request(str(url), encoded_body)
req.get_method = lambda: 'PUT'
try:
response = urllib2.urlopen(req, encoded_body).read()
except urllib2.HTTPError, error:
print 'Exception: ' + error.read()
jsonresp = json.loads(response.decode('utf-8'))
print jsonresp['status']
import json, urllib2
zeppelin_int_url = 'http://localhost:9995/api/interpreter/setting/'
data = json.load(urllib2.urlopen(zeppelin_int_url))
for body in data['body']:
if body['group'] == 'psql':
psqlbody = body
elif body['group'] == 'hive':
hivebody = body
hivebody['properties']['hive.hiveserver2.url'] = 'jdbc:hive2://localhost:10000'
post_request(zeppelin_int_url + hivebody['id'], hivebody)
psqlbody['properties']['postgresql.user'] = 'gpadmin'
psqlbody['properties']['postgresql.password'] = 'gpadmin'
psqlbody['properties']['postgresql.url'] = 'jdbc:postgresql://localhost:10432/postgres'
post_request(zeppelin_int_url + psqlbody['id'], psqlbody)
What does the code do? First it is connecting to Zeppelin REST API on port 9995 and fetching the configs for hive and psql interpreters Then it is updating hive interpreter configs (by setting the HS2 url to jdbc:hive2://localhost:10000) and posting the updated config back to Zeppelin Finally it is updating psql interpreter configs (by setting the username/pass and udpating psql url to jdbc:postgresql://localhost:10432/postgres) and posting the updated config back to Zeppelin Sample output is shown below. For each request made, it will output OK if the POST request succeeded. # python zeppelin.py
OK
OK
Also if your urls/credentials are different from above, feel free to modify the python script and re-run the script (you can re-run the script as many times as you like) Now if you open your Zeppelin interpreter tab, you will notice that the Hive and psql interpreters have been updated with above configs.
... View more
Labels:
05-26-2016
10:00 PM
Thanks @Vipin Rathor: while the guide uses the "manual" option of security wizard, it may be useful to know that starting Ambari 2.4, Ambari security wizard will support FreeIPA as one of the options for kerborizing (along with ActiveDir, MIT KDC). This will greatly ease the process of integrating FreeIPA with HDP
... View more
06-06-2016
10:20 PM
Thank you sujitha. thats the same reason
... View more
05-20-2016
03:52 AM
@Ali Bajwa Just created this https://www.linkedin.com/pulse/hawqhdb-hadoop-hive-hbase-neeraj-sabharwal
... View more
10-31-2016
06:54 PM
I resolved this problem.
I create a new VM hortonworks, and do not install nifi, after this, download the new version (https://www.apache.org/dyn/closer.lua?path=/nifi/1.0.0/nifi-1.0.0-bin.zip) and use sudo sh /opt/nifi-1.0.0/bin/nifi.sh start .The problem has been resolved and nifi update has concluded.
... View more
12-28-2016
05:40 AM
Thanks @Ali Bajwa
... View more
05-30-2016
09:36 AM
Thank you so much for your answer I had the same problem this morning and I thought it was a proxy problem but actually I had an empty note in Zeppelin. I hope this tiny problem will be fixed in the next versions of Zeppelin Notebook. When I check the status of zeppelin-daemon.sh it tells me "Zeppelin running but process is dead" can anyone knows the reason for this error ?
... View more
06-27-2016
05:22 PM
is there an update for 2.4?
... View more