Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-2152] Fix for npe in Helium loading when no proxies are set #2380

Closed
wants to merge 1 commit into from

Conversation

necosta
Copy link
Contributor

@necosta necosta commented May 30, 2017

What is this PR for?

Emergency fix for npe when calling Helium and with no proxies env variables set.

What type of PR is it?

Bug Fix

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-2152

How should this be tested?

  • clone new zeppelin repository
  • unset http_proxy/https_proxy env variables (if set)
  • build mvn clean package -DskipTests;
  • start zeppelin instance

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@necosta
Copy link
Contributor Author

necosta commented May 30, 2017

@1ambda , my bad, failing to realize this would not work when no proxies are set.
I'll keep testing this fix but I think it's ok. Can you test as well?

@necosta necosta closed this May 30, 2017
@necosta necosta reopened this May 30, 2017
@1ambda
Copy link
Member

1ambda commented May 31, 2017

@necosta Thanks for the quick fix. But can't enable helium packages at all.

ERROR [2017-05-31 09:39:15,638] ({qtp832702943-60} HeliumBundleFactory.java[getProxyConfig]:171) -
java.lang.NullPointerException
        at java.net.URI$Parser.parse(URI.java:3023)
        at java.net.URI.<init>(URI.java:595)
        at org.apache.zeppelin.helium.HeliumBundleFactory.getProxyConfig(HeliumBundleFactory.java:169)
        at org.apache.zeppelin.helium.HeliumBundleFactory.npmCommand(HeliumBundleFactory.java:665)
        at org.apache.zeppelin.helium.HeliumBundleFactory.npmCommand(HeliumBundleFactory.java:671)
        at org.apache.zeppelin.helium.HeliumBundleFactory.downloadPackage(HeliumBundleFactory.java:278)
        at org.apache.zeppelin.helium.HeliumBundleFactory.buildPackage(HeliumBundleFactory.java:447)
        at org.apache.zeppelin.helium.Helium.enable(Helium.java:314)

@Leemoonsoo
Copy link
Member

Tested and LGTM.
Merge this to master and branch-0.7 as a hotfix.

@asfgit asfgit closed this in 88c5c3c May 31, 2017
asfgit pushed a commit that referenced this pull request May 31, 2017
Emergency fix for npe when calling Helium and with no proxies env variables set.

Bug Fix

https://issues.apache.org/jira/browse/ZEPPELIN-2152

* clone new zeppelin repository
* unset http_proxy/https_proxy env variables (if set)
* build ` mvn clean package -DskipTests;`
* start zeppelin instance

* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Nelson Costa <nelson.costa85@gmail.com>

Closes #2380 from necosta/zeppelin2152-patch and squashes the following commits:

cb25cd7 [Nelson Costa] [ZEPPELIN-2152] Fix for npe in Helium loading when no proxies are set

(cherry picked from commit 88c5c3c)
Signed-off-by: Lee moon soo <moon@apache.org>
@necosta
Copy link
Contributor Author

necosta commented Jun 1, 2017

Thanks guys! I was having some issues testing this without proxies so really appreciated you testing it.

@liuhengzhi liuhengzhi deleted the zeppelin2152-patch branch July 3, 2018 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants