- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to use proxy server while importing python libraries that need internat access in HUE or Zeppelin
- Labels:
-
Apache Zeppelin
-
Cloudera Hue
Created 10-01-2024 05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Freinds
My Cloudera Cluster has no access to the internet - if I need to gather some parcel or any file via wget for example
But what if I want to import some python library in HUE or Zeppelin that requires dynamic access to the internet.
I have installed via pop3 pgeocode library and now in Peppelin or HUE when I want to dynamically call that library I am getting TIme OUT issue :
File "/usr/lib64/python3.9/urllib/request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 110] Connection timed out
How can I use proxy server in such cases so HUE or Zeppelin if record has access to the internet - able to reach the python library modules.
Created 10-01-2024 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For exampale
When I run via HUE
import pgeocode
dist = pgeocode.GeoDistance('pl')
I got the Error - Time Out as i cannot access the Internet and need to go via proxy - but how this proxy can be configured in Hue or be part of the code in HUE
Created 10-04-2024 11:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi! @dturnau @jrm @nramanaiah Do you have some insights here? Thanks!
Regards,
Diana Torres,Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
