Can you please file JIRA at https://issues.apache.org/jira/browse/ZEPPELIN
On Tue, Mar 31, 2020 at 12:19 PM Artem P <yoneda...@gmail.com> wrote: > Hi! I am experiencing the following error after clicking Enable on any > Helium module (full stack trace in file attachement): > ``` > Caused by: java.lang.NullPointerException > at > org.apache.zeppelin.helium.HeliumBundleFactory.bundleHeliumPackage(HeliumBundleFactory.java:388) > at > org.apache.zeppelin.helium.HeliumBundleFactory.buildPackage(HeliumBundleFactory.java:455) > at org.apache.zeppelin.helium.Helium.enable(Helium.java:287) > at > org.apache.zeppelin.rest.HeliumRestApi.enablePackage(HeliumRestApi.java:209) > ``` > Zeppelin version 0.8.2 on EMR. It worked before, but broke after Zeppelin > server restart. > > The exception rises in the following function: > ``` > private synchronized File bundleHeliumPackage(FrontendPluginFactory fpf, > File bundleDir) throws > IOException { > try { > out.reset(); > logger.info("Bundling helium packages"); > yarnCommand(fpf, "run bundle"); > logger.info("Bundled helium packages"); > } catch (TaskRunnerException e) { > throw new IOException(new String(out.toByteArray())); > } > > String bundleStdoutResult = new String(out.toByteArray()); > File heliumBundle = new File(bundleDir, HELIUM_BUNDLE); > if (!heliumBundle.isFile()) { > throw new IOException( > "Can't create bundle: \n" + bundleStdoutResult); > } > > WebpackResult result = getWebpackResultFromOutput(bundleStdoutResult); > if (result.errors.length > 0) { > FileUtils.deleteQuietly(heliumBundle); > throw new IOException(result.errors[0]); > } > > return heliumBundle; > } > ``` > NullPointerException occurs at line with `if (result.errors.length > 0)`. > I tried to reproduce it by running `yarn run bundle` manually in bash, but > it successfully finishes and returns json with empty errors array in it. > -- With best wishes, Alex Ott http://alexott.net/ Twitter: alexott_en (English), alexott (Russian)