flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Till Rohrmann <trohrm...@apache.org>
Subject Re: Cannot start FlinkMiniCluster.WebServer using different port in FlinkMiniCluster
Date Thu, 21 Jan 2016 16:11:59 GMT
Could you add flink-runtime-web to your dependencies of your project? It
seems as if it is missing in your project.

Cheers,
Till
‚Äč

On Thu, Jan 21, 2016 at 4:45 PM, HungChang <unicorn.banachi@gmail.com>
wrote:

> The following message is obtained after putting
> BasicConfigurator.configure()
> in main();
> But I don't understand the reason `flink-runtime-web is not in the
> classpath`.
>
> For me the strange part is using the scala version works well whereas my
> java version throws exception.
>
> 1413 [main] ERROR org.apache.flink.runtime.webmonitor.WebMonitorUtils  -
> Could not load web runtime monitor. Probably reason: flink-runtime-web is
> not in the classpath
> 1414 [main] DEBUG org.apache.flink.runtime.webmonitor.WebMonitorUtils  -
> Caught exception
> java.lang.ClassNotFoundException:
> org.apache.flink.runtime.webmonitor.WebRuntimeMonitor
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:264)
>         at
>
> org.apache.flink.runtime.webmonitor.WebMonitorUtils.startWebRuntimeMonitor(WebMonitorUtils.java:130)
>         at
>
> org.apache.flink.runtime.minicluster.FlinkMiniCluster.startWebServer(FlinkMiniCluster.scala:292)
>         at
>
> org.apache.flink.runtime.minicluster.FlinkMiniCluster.start(FlinkMiniCluster.scala:268)
>         at
>
> org.apache.flink.runtime.minicluster.FlinkMiniCluster.start(FlinkMiniCluster.scala:226)
>         at
>
> org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:101)
>
> Best,
>
> Sendoh
>
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Cannot-start-FlinkMiniCluster-WebServer-using-different-port-in-FlinkMiniCluster-tp4414p4453.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>

Mime
View raw message