PlayN 1.6 default maven project deploys but won't run on Android - playn

I'm having trouble with setting up a new PlayN project and running it on Android. The game compiles, install, but it wont run.
I've created a new project using mvn archetype:generate -DarchetypeGroupId=com.googlecode.playn -DarchetypeArtifactId=playn-archetype -DarchetypeVersion=1.6.
And then, without not even touching any single file, I installed it to and Android Emulator instance using mvn -Pandroid install
Then, I tried to run the application, but it hanged just after I tried to run it.
I have tried it with two different emulator images, one using Android 2.3.3 ARM, and another using Android 4.2.2 ARM.
The android logcat logs where the folowing
LOG FOR 4.2.2 ARM Android
I/ActivityManager( 289): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=net.sf.gnumaru.jogo.android/.JogoActivity} from pid 413
W/WindowManager( 289): Failure taking screenshot for (123x164) to layer 21005
I/Choreographer( 413): Skipped 132 frames! The application may be doing too much work on its main thread.
E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property
D/dalvikvm( 1235): Not late-enabling CheckJNI (already on)
I/ActivityManager( 289): Start proc net.sf.gnumaru.jogo.android for activity net.sf.gnumaru.jogo.android/.JogoActivity: pid=1235 uid=10047 gids={50047, 1028}
I/dalvikvm( 1235): Turning on JNI app bug workarounds for target SDK version 11...
I/Choreographer( 722): Skipped 40 frames! The application may be doing too much work on its main thread.
E/Trace ( 1235): error opening trace file: No such file or directory (2)
I/Choreographer( 289): Skipped 33 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 44 frames! The application may be doing too much work on its main thread.
W/SurfaceFlinger( 37): createScreenshotSurface failed (Function not implemented)
I/ActivityManager( 289): Config changes=1480 {1.0 310mcc260mnc en_US ldltr sw320dp w426dp h294dp 120dpi smll land finger qwerty/v/v -nav/h s.9}
I/InputReader( 289): Reconfiguring input devices. changes=0x00000004
I/InputReader( 289): Device reconfigured: id=0, name='qwerty2', size 240x320, orientation 1, mode 1, display id 0
I/Choreographer( 289): Skipped 86 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 74 frames! The application may be doing too much work on its main thread.
I/Choreographer( 1235): Skipped 99 frames! The application may be doing too much work on its main thread.
E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property
I/Choreographer( 289): Skipped 52 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 63 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 46 frames! The application may be doing too much work on its main thread.
E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property
D/libEGL ( 1235): Emulator without GPU support detected. Fallback to software renderer.
D/libEGL ( 1235): loaded /system/lib/egl/libGLES_android.so
I/Choreographer( 1235): Skipped 365 frames! The application may be doing too much work on its main thread.
D/dalvikvm( 722): GC_FOR_ALLOC freed 6832K, 71% free 2947K/10148K, paused 494ms, total 497ms
I/Choreographer( 289): Skipped 39 frames! The application may be doing too much work on its main thread.
I/dalvikvm-heap( 722): Grow heap (frag case) to 9.125MB for 6410576-byte allocation
D/gralloc_goldfish( 1235): Emulator without GPU emulation detected.
W/dalvikvm( 1235): threadid=13: thread exiting with uncaught exception (group=0x40a71930)
E/AndroidRuntime( 1235): FATAL EXCEPTION: GLThread 87
E/AndroidRuntime( 1235): java.lang.IllegalArgumentException: No configs match configSpec
E/AndroidRuntime( 1235): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:863)
E/AndroidRuntime( 1235): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
E/AndroidRuntime( 1235): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
E/AndroidRuntime( 1235): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
W/ActivityManager( 289): Force finishing activity net.sf.gnumaru.jogo.android/.JogoActivity
W/WindowManager( 289): Failure taking screenshot for (109x145) to layer 21020
D/dalvikvm( 722): GC_FOR_ALLOC freed 1K, 10% free 9206K/10148K, paused 378ms, total 379ms
D/dalvikvm( 722): GC_CONCURRENT freed <1K, 10% free 9207K/10148K, paused 7ms+5ms, total 116ms
D/dalvikvm( 289): GC_FOR_ALLOC freed 199K, 17% free 5336K/6356K, paused 183ms, total 190ms
I/dalvikvm-heap( 289): Grow heap (frag case) to 5.435MB for 89296-byte allocation
D/dalvikvm( 289): GC_FOR_ALLOC freed 11K, 17% free 5411K/6444K, paused 174ms, total 174ms
W/SurfaceFlinger( 37): createScreenshotSurface failed (Function not implemented)
I/ActivityManager( 289): Config changes=1480 {1.0 310mcc260mnc en_US ldltr sw320dp w320dp h401dp 120dpi smll port finger qwerty/v/v -nav/h s.10}
W/ActivityManager( 289): Activity pause timeout for ActivityRecord{40d77818 u0 net.sf.gnumaru.jogo.android/.JogoActivity}
I/ActivityManager( 289): Displayed net.sf.gnumaru.jogo.android/.JogoActivity: +2s593ms
I/Choreographer( 289): Skipped 1027 frames! The application may be doing too much work on its main thread.
W/IInputConnectionWrapper( 413): showStatusIcon on inactive InputConnection
I/Choreographer( 289): Skipped 494 frames! The application may be doing too much work on its main thread.
I/Choreographer( 1235): Skipped 1217 frames! The application may be doing too much work on its main thread.
I/InputReader( 289): Reconfiguring input devices. changes=0x00000004
I/InputReader( 289): Device reconfigured: id=0, name='qwerty2', size 240x320, orientation 0, mode 1, display id 0
I/InputReader( 289): Reconfiguring input devices. changes=0x00000004
I/InputReader( 289): Device reconfigured: id=0, name='qwerty2', size 240x320, orientation 0, mode 1, display id 0
I/Choreographer( 289): Skipped 360 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 34 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 41 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 442 frames! The application may be doing too much work on its main thread.
E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property
I/Choreographer( 413): Skipped 793 frames! The application may be doing too much work on its main thread.
I/Choreographer( 413): Skipped 59 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 38 frames! The application may be doing too much work on its main thread.
D/dalvikvm( 722): GC_FOR_ALLOC freed 6828K, 71% free 2948K/10148K, paused 171ms, total 193ms
I/dalvikvm-heap( 722): Grow heap (frag case) to 9.125MB for 6410576-byte allocation
D/dalvikvm( 722): GC_CONCURRENT freed 1K, 10% free 9207K/10148K, paused 24ms+5ms, total 143ms
D/dalvikvm( 289): GC_EXPLICIT freed 85K, 16% free 5444K/6444K, paused 7ms+35ms, total 204ms
I/Choreographer( 722): Skipped 1352 frames! The application may be doing too much work on its main thread.
I/Choreographer( 289): Skipped 39 frames! The application may be doing too much work on its main thread.
D/ExchangeService( 661): Received deviceId from Email app: null
D/ExchangeService( 661): !!! deviceId unknown; stopping self and retrying
D/ExchangeService( 661): !!! EAS ExchangeService, onCreate
D/ExchangeService( 661): !!! EAS ExchangeService, onStartCommand, startingUp = false, running = false
D/ExchangeService( 661): !!! EAS ExchangeService, onStartCommand, startingUp = true, running = false
W/ActivityManager( 289): Unable to start service Intent { act=com.android.email.ACCOUNT_INTENT } U=0: not found
D/ExchangeService( 661): !!! Email application not found; stopping self
W/ActivityManager( 289): Unable to start service Intent { act=com.android.email.ACCOUNT_INTENT } U=0: not found
E/ActivityThread( 661): Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection#40cff4a0 that was originally bound here
E/ActivityThread( 661): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection#40cff4a0 that was originally bound here
E/ActivityThread( 661): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
E/ActivityThread( 661): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
E/ActivityThread( 661): at android.app.ContextImpl.bindService(ContextImpl.java:1418)
E/ActivityThread( 661): at android.app.ContextImpl.bindService(ContextImpl.java:1407)
E/ActivityThread( 661): at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
E/ActivityThread( 661): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
E/ActivityThread( 661): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
E/ActivityThread( 661): at com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116)
E/ActivityThread( 661): at com.android.exchange.ExchangeService.getDeviceId(ExchangeService.java:1249)
E/ActivityThread( 661): at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1856)
E/ActivityThread( 661): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
E/ActivityThread( 661): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
E/ActivityThread( 661): at android.os.AsyncTask$2.call(AsyncTask.java:287)
E/ActivityThread( 661): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
E/ActivityThread( 661): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
E/ActivityThread( 661): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
E/ActivityThread( 661): at java.lang.Thread.run(Thread.java:856)
E/StrictMode( 661): null
E/StrictMode( 661): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection#40cff4a0 that was originally bound here
E/StrictMode( 661): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
E/StrictMode( 661): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
E/StrictMode( 661): at android.app.ContextImpl.bindService(ContextImpl.java:1418)
E/StrictMode( 661): at android.app.ContextImpl.bindService(ContextImpl.java:1407)
E/StrictMode( 661): at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
E/StrictMode( 661): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
E/StrictMode( 661): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
E/StrictMode( 661): at com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116)
E/StrictMode( 661): at com.android.exchange.ExchangeService.getDeviceId(ExchangeService.java:1249)
E/StrictMode( 661): at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1856)
E/StrictMode( 661): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
E/StrictMode( 661): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
E/StrictMode( 661): at android.os.AsyncTask$2.call(AsyncTask.java:287)
E/StrictMode( 661): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
E/StrictMode( 661): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
E/StrictMode( 661): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
E/StrictMode( 661): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 289): Unbind failed: could not find connection for android.os.BinderProxy#40e15c40
E/ActivityThread( 661): Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection#40cff0a8 that was originally bound here
E/ActivityThread( 661): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection#40cff0a8 that was originally bound here
E/ActivityThread( 661): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
E/ActivityThread( 661): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
E/ActivityThread( 661): at android.app.ContextImpl.bindService(ContextImpl.java:1418)
E/ActivityThread( 661): at android.app.ContextImpl.bindService(ContextImpl.java:1407)
E/ActivityThread( 661): at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
E/ActivityThread( 661): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
E/ActivityThread( 661): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
E/ActivityThread( 661): at com.android.emailcommon.service.ServiceProxy.test(ServiceProxy.java:191)
E/ActivityThread( 661): at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1850)
E/ActivityThread( 661): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
E/ActivityThread( 661): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
E/ActivityThread( 661): at android.os.AsyncTask$2.call(AsyncTask.java:287)
E/ActivityThread( 661): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
E/ActivityThread( 661): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
E/ActivityThread( 661): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
E/ActivityThread( 661): at java.lang.Thread.run(Thread.java:856)
E/StrictMode( 661): null
E/StrictMode( 661): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection#40cff0a8 that was originally bound here
E/StrictMode( 661): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
E/StrictMode( 661): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
E/StrictMode( 661): at android.app.ContextImpl.bindService(ContextImpl.java:1418)
E/StrictMode( 661): at android.app.ContextImpl.bindService(ContextImpl.java:1407)
E/StrictMode( 661): at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
E/StrictMode( 661): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
E/StrictMode( 661): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
E/StrictMode( 661): at com.android.emailcommon.service.ServiceProxy.test(ServiceProxy.java:191)
E/StrictMode( 661): at com.android.exchange.ExchangeService$7.run(ExchangeService.java:1850)
E/StrictMode( 661): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:551)
E/StrictMode( 661): at com.android.emailcommon.utility.Utility$2.doInBackground(Utility.java:549)
E/StrictMode( 661): at android.os.AsyncTask$2.call(AsyncTask.java:287)
E/StrictMode( 661): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
E/StrictMode( 661): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
E/StrictMode( 661): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
E/StrictMode( 661): at java.lang.Thread.run(Thread.java:856)
D/dalvikvm( 661): GC_CONCURRENT freed 409K, 18% free 2512K/3060K, paused 5ms+26ms, total 76ms
W/ActivityManager( 289): Unbind failed: could not find connection for android.os.BinderProxy#40e25018
LOG FOR 2.3.3 ARM ANDROID
I/ActivityManager( 70): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=net.sf.gnumaru.jogo.android/.JogoActivity } from pid 227
I/ActivityManager( 70): Start proc net.sf.gnumaru.jogo.android for activity net.sf.gnumaru.jogo.android/.JogoActivity: pid=417 uid=10034 gids={}
I/ARMAssembler( 70): generated scanline__00000177:03515104_00001002_00000000 [ 87 ipp] (110 ins) at [0x43bab6f0:0x43bab8a8] in 1571380 ns
D/dalvikvm( 417): Trying to load lib /data/data/net.sf.gnumaru.jogo.android/lib/libplayn-android-nativelib.so 0x40514c78
D/dalvikvm( 417): Added shared lib /data/data/net.sf.gnumaru.jogo.android/lib/libplayn-android-nativelib.so 0x40514c78
D/dalvikvm( 417): No JNI_OnLoad found in /data/data/net.sf.gnumaru.jogo.android/lib/libplayn-android-nativelib.so 0x40514c78, skipping init
I/WindowManager( 70): Setting rotation to 1, animFlags=1
I/ActivityManager( 70): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=1/1 orien=2 layout=17 uiMode=17 seq=6}
I/ActivityManager( 70): Displayed net.sf.gnumaru.jogo.android/.JogoActivity: +1s834ms
D/libEGL ( 417): egl.cfg not found, using default config
D/libEGL ( 417): loaded /system/lib/egl/libGLES_android.so
W/dalvikvm( 417): threadid=11: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 417): FATAL EXCEPTION: GLThread 12
E/AndroidRuntime( 417): java.lang.IllegalArgumentException: No configs match configSpec
E/AndroidRuntime( 417): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:763)
E/AndroidRuntime( 417): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:919)
E/AndroidRuntime( 417): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1264)
E/AndroidRuntime( 417): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
W/ActivityManager( 70): Force finishing activity net.sf.gnumaru.jogo.android/.JogoActivity
W/InputManagerService( 70): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy#40952df0 (uid=10034 pid=417)
W/InputManagerService( 70): Client not active, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4079e5f8
W/ActivityManager( 70): Activity pause timeout for HistoryRecord{4066ab48 net.sf.gnumaru.jogo.android/.JogoActivity}
D/dalvikvm( 70): GC_EXPLICIT freed 208K, 61% free 4205K/10567K, external 809K/1222K, paused 307ms
I/WindowManager( 70): Setting rotation to 0, animFlags=1
I/ActivityManager( 70): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=1/1 orien=1 layout=17 uiMode=17 seq=7}
I/ContactsDatabaseHelper( 224): Switching to locale en_US
D/dalvikvm( 224): GC_CONCURRENT freed 430K, 53% free 2794K/5895K, external 410K/517K, paused 10ms+9ms
D/dalvikvm( 70): GC_EXPLICIT freed 26K, 61% free 4199K/10567K, external 807K/1222K, paused 209ms
I/ContactsDatabaseHelper( 224): Locale change completed in 2358ms
I thougth my problem was similar to the one below:
android artifact built in playn deploied but not running
But that question didn't helped me.
I'm using Linux Ubuntu 12.10 X86_64, the latest android sdk (21.1) and the latest maven (3.0.5)
Thanks in advance.

I've solved my problem.
Android emulator doesn't (or didn't) support OpenGL ES 2.0, and PlayN forces you to use it.
I've tried to deploy and run the application on a real phone and it worked correctly.
Strangely, recent releases (see link below) of the android emulator should support OpenGL ES 2.0 through translation instead of instruction emulation: The emulator GL ES intructions are translated to normal OpenGL instructions and dealt with directly by the host systems GPU, in wich the emulator is running.
http://www.learnopengles.com/android-emulator-now-supports-native-opengl-es2-0/
However, I didn't manage to get it working on Ubuntu 12.10 X86_64, and I haven't tried it on MS Windows yet.

Related

Connect sparklyr 0.8.4 to remote spark 2.2.1 connection

I'm trying to connect from R to a remote spark cluster.
The spark cluster is build on debian jessie and the R version i can install on it is at most 3.3 but I need 3.4 to be able to run FactoMineR. So I installed R on another machine and try to connect the cluster using sparklyr 0.8.4
> sc <- spark_connect(master = "spark://spark-cluster-m:7077", spark_home="/usr/lib/spark/", version="2.2.1")
Error in start_shell(master = master, spark_home = spark_home, spark_version = version, :
SPARK_HOME directory '/usr/lib/spark/' not found
spark isn't installed on the local machine but on the spark-cluster-m, it is :
jc#spark-cluster-m:/usr/lib/spark$ ls
bin conf data examples external jars LICENSE licenses NOTICE python R README.md RELEASE sbin work yarn
Have I missed something ?
The spark cluster is on google cloud (test account) and so is the VM with R. How do I verify the port spark can be connected to ?
Thanks for your clues
#user16... You're right, this particular problem seems to be solved but my way is not ended.
I installed the same spark version (2.2.1 with hadoop > 2.7)
Here is my new error message :
Error in force(code) :
Failed during initialize_connection: java.lang.IllegalArgumentException: requirement failed: Can only call getServletHandlers on a running MetricsSystem
at scala.Predef$.require(Predef.scala:224)
at org.apache.spark.metrics.MetricsSystem.getServletHandlers(MetricsSystem.scala:91)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:524)
at org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2516)
at org.apache.spark.SparkContext.getOrCreate(SparkContext.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sparklyr.Invoke.invoke(invoke.scala:137)
at sparklyr.StreamHandler.handleMethodCall(stream.scala:123)
at sparklyr.StreamHandler.read(stream.scala:66)
at sparklyr.BackendHandler.channelRead0(handler.scala:51)
at sparklyr.BackendHandler.channelRead0(handler.scala:4)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:643)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:566)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:480)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:748)
Log: /tmp/RtmpTUh0z6/file5d231368db0_spark.log
---- Output Log ----
at io.netty.channel.nio.NioEventLoop.processS
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:480)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
... 1 more
18/07/21 18:24:59 INFO StandaloneAppClient$ClientEndpoint: Connecting to master spark://spark-cluster-m:7077...
18/07/21 18:24:59 WARN StandaloneAppClient$ClientEndpoint: Failed to connect to master spark-cluster-m:7077
org.apache.spark.SparkException: Exception thrown in awaitResult:
at org.apache.spark.util.ThreadUtils$.awaitResult(ThreadUtils.scala:205)
at org.apache.spark.rpc.RpcTimeout.awaitResult(RpcTimeout.scala:75)
at org.apache.spark.rpc.RpcEnv.setupEndpointRefByURI(RpcEnv.scala:100)
at org.apache.spark.rpc.RpcEnv.setupEndpointRef(RpcEnv.scala:108)
at org.apache.spark.deploy.client.StandaloneAppClient$ClientEndpoint$$anonfun$tryRegisterAllMasters$1$$anon$1.run(StandaloneAppClient.scala:106)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Failed to connect to spark-cluster-m/10.142.0.3:7077
at org.apache.spark.network.client.TransportClientFactory.createClient(TransportClientFactory.java:232)
at org.apache.spark.network.client.TransportClientFactory.createClient(TransportClientFactory.java:182)
at org.apache.spark.rpc.netty.NettyRpcEnv.createClient(NettyRpcEnv.scala:197)
at org.apache.spark.rpc.netty.Outbox$$anon$1.call(Outbox.scala:194)
at org.apache.spark.rpc.netty.Outbox$$anon$1.call(Outbox.scala:190)
... 4 more
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: spark-cluster-m/10.142.0.3:7077
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:257)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:291)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:631)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:566)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:480)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
... 1 more
18/07/21 18:25:19 ERROR StandaloneSchedulerBackend: Application has been killed. Reason: All masters are unresponsive! Giving up.
18/07/21 18:25:19 WARN StandaloneSchedulerBackend: Application ID is not initialized yet.
18/07/21 18:25:19 INFO Utils: Successfully started service 'org.apache.spark.network.netty.NettyBlockTransferService' on port 46811.
18/07/21 18:25:19 INFO NettyBlockTransferService: Server created on 10.142.0.5:46811
18/07/21 18:25:19 INFO BlockManager: Using org.apache.spark.storage.RandomBlockReplicationPolicy for block replication policy
18/07/21 18:25:19 INFO BlockManagerMaster: Registering BlockManager BlockManagerId(driver, 10.142.0.5, 46811, None)
18/07/21 18:25:19 INFO BlockManagerMasterEndpoint: Registering block manager 10.142.0.5:46811 with 366.3 MB RAM, BlockManagerId(driver, 10.142.0.5, 46811, None)
18/07/21 18:25:19 INFO BlockManagerMaster: Registered BlockManager BlockManagerId(driver, 10.142.0.5, 46811, None)
18/07/21 18:25:19 INFO BlockManager: Initialized BlockManager: BlockManagerId(driver, 10.142.0.5, 46811, None)
18/07/21 18:25:19 INFO SparkUI: Stopped Spark web UI at http://10.142.0.5:4040
18/07/21 18:25:19 INFO StandaloneSchedulerBackend: Shutting down all executors
18/07/21 18:25:19 INFO CoarseGrainedSchedulerBackend$DriverEndpoint: Asking each executor to shut down
18/07/21 18:25:19 WARN StandaloneAppClient$ClientEndpoint: Drop Unregist
I can see it can resolve the name (=> 10.142.0.3)
Also, it seems to be the good port as if I use port 7000, i have the error :
18/07/21 18:32:54 ERROR TransportResponseHandler: Still have 1 requests outstanding when connection from spark-cluster-m/10.142.0.3:7000 is closed
18/07/21 18:32:54 WARN StandaloneAppClient$ClientEndpoint: Could not connect to spark-cluster-m:7000: java.io.IOException: Connection reset by peer
18/07/21 18:32:54 WARN StandaloneAppClient$ClientEndpoint: Failed to connect to master spark-cluster-m:7000
But I can't figure out what this means.
You say my configuration is "particular". If there is a better (and simple) approach, i would be glad to use it.
Here is how I proceeded in my tests :
I created a google dataproc cluster with spark (2.2.1)
I added Cassandra on each node
At this stage, everything works ok.
Then, i need to install FactoMineR as I'd like to try HMFA. It is said to run with R > 3.0.0 so it seems to be ok but it depends on nlme which can't be installed on R < 3.4.0 (and the one in the debian jessie backports is 3.3.)
So, what can I do ?
I must admit that i'm not very enthusiastic in restarting a full spark / cassandra cluster install from scratch...

JBoss nodes not joining tcp standalone cluster

I am trying to setup a Standalone, TCP cluster.
I am not able to see the two nodes join the cluster.
The process snapshots are as below:
jboss 21682 11484 0 07:56 pts/0 00:00:00 /bin/sh /data/jboss/jboss-eap-6.4/bin/standalone.sh -c standalone-full-ha.xml -b 10.21.141.109
jboss 21789 21682 1 07:56 pts/0 00:00:38 /usr/lib/jvm/java-1.8.0/bin/java -D[Standalone] -server -XX:+UseCompressedOops -verbose:gc -Xloggc:/data/jboss/jboss-eap-6.4/standalone/log/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true -Dorg.jboss.boot.log.file=/data/jboss/jboss-eap-6.4/standalone/log/server.log -Dlogging.configuration=file:/data/jboss/jboss-eap-6.4/standalone/configuration/logging.properties -jar /data/jboss/jboss-eap-6.4/jboss-modules.jar -mp /data/jboss/jboss-eap-6.4/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/data/jboss/jboss-eap-6.4 -Djboss.server.base.dir=/data/jboss/jboss-eap-6.4/standalone -c standalone-full-ha.xml -b 10.21.141.109
jboss 28082 25185 0 07:56 pts/0 00:00:00 /bin/sh /data/jboss/jboss-eap-6.4/bin/standalone.sh -c standalone-full-ha.xml -b 10.21.142.37
jboss 28173 28082 0 07:56 pts/0 00:00:27 java -D[Standalone] -server -XX:+UseCompressedOops -verbose:gc -Xloggc:/data/jboss/jboss-eap-6.4/standalone/log/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true -Dorg.jboss.boot.log.file=/data/jboss/jboss-eap-6.4/standalone/log/server.log -Dlogging.configuration=file:/data/jboss/jboss-eap-6.4/standalone/configuration/logging.properties -jar /data/jboss/jboss-eap-6.4/jboss-modules.jar -mp /data/jboss/jboss-eap-6.4/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/data/jboss/jboss-eap-6.4 -Djboss.server.base.dir=/data/jboss/jboss-eap-6.4/standalone -c standalone-full-ha.xml -b 10.21.142.37
server.log entries:
07:56:57,757 INFO [stdout] (ServerService Thread Pool -- 67) -------------------------------------------------------------------
07:56:57,757 INFO [stdout] (ServerService Thread Pool -- 67) GMS: address=pkumarips045001/web, cluster=web, physical address=10.21.141.109:7600
07:56:57,758 INFO [stdout] (ServerService Thread Pool -- 67) -------------------------------------------------------------------
07:56:57,757 INFO [stdout] (ServerService Thread Pool -- 67)
07:56:57,757 INFO [stdout] (ServerService Thread Pool -- 67) -------------------------------------------------------------------
07:56:57,757 INFO [stdout] (ServerService Thread Pool -- 67) GMS: address=pkumarips045001/web, cluster=web, physical address=10.21.141.109:7600
07:56:57,758 INFO [stdout] (ServerService Thread Pool -- 67) -------------------------------------------------------------------
07:57:00,776 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 67) ISPN000094: Received new cluster view: [pkumarips045001/web|0] [pkumarips045001/web]
Request your assistance with this.
Thank You.
I was able to fix the problem by changing the bind address. Now I can see both nodes in the cluster.
I am having some errors with HornetQ and modcluster. Again, seems like something related to the bind address.
Will look further into it.
Thank you.

Spring MVC + hibernate cannot create DDL

My Application with Hibernate + spring cannot create DDL. Here is my configurations.
My WebApp.xml is
And My Entities in org.ex.doqi.domain package
WAS is wildfly 9 and start log is
17:21:05,667 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "ex11-1.0-SNAPSHOT.war" (runtime-name: "ex11-1.0-SNAPSHOT.war")
17:21:13,825 WARN [org.jboss.as.ee] (MSC service thread 1-4) WFLYEE0007: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to an exception (enable DEBUG log level to see the cause)
17:21:13,831 WARN [org.jboss.as.ee] (MSC service thread 1-4) WFLYEE0007: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception (enable DEBUG log level to see the cause)
17:21:14,103 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.mariadb.jdbc.Driver (version 1.2)
17:21:14,104 WARN [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0013: Deployment deployment "ex11-1.0-SNAPSHOT.war" contains CDI annotations but no bean archive was not found. (No beans.xml nor class with bean defining annotations)
17:21:14,171 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = ex11-1.0-SNAPSHOT.war_org.mariadb.jdbc.Driver_1_2
17:21:14,494 INFO [io.undertow.servlet] (ServerService Thread Pool -- 68) No Spring WebApplicationInitializer types detected on classpath
17:21:14,528 INFO [io.undertow.servlet] (ServerService Thread Pool -- 68) Initializing Spring root WebApplicationContext
17:21:14,534 INFO [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 68) Root WebApplicationContext: initialization started
17:21:14,789 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 68) Refreshing Root WebApplicationContext: startup date [Wed Feb 10 17:21:14 KST 2016]; root of context hierarchy
17:21:15,365 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (ServerService Thread Pool -- 68) Loading XML bean definitions from class path resource [appConfig.xml]
17:21:16,197 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (ServerService Thread Pool -- 68) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
17:21:16,536 INFO [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 68) Building JPA container EntityManagerFactory for persistence unit 'jpa11'
17:21:16,548 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 68) HHH000204: Processing PersistenceUnitInfo [
name: jpa11
...]
17:21:16,725 INFO [org.hibernate.Version] (ServerService Thread Pool -- 68) HHH000412: Hibernate Core {4.3.11.Final}
17:21:16,735 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 68) HHH000206: hibernate.properties not found
17:21:16,740 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 68) HHH000021: Bytecode provider name : javassist
17:21:17,002 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 68) HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
17:21:17,600 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 68) HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
17:21:17,920 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 68) HHH000397: Using ASTQueryTranslatorFactory
17:21:17,981 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 68) HV000001: Hibernate Validator 5.1.3.Final
17:21:18,917 INFO [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 68) Root WebApplicationContext: initialization completed in 4383 ms
Question
Even though "hibernate.hdm2ddl.auto" option is true, why spring context cannot create DDL?
The property is hibernate.hbm2ddl.auto and not hibernate.hdm2ddl.auto.
Replace d with b in hdm2ddl.
From the documentation -
hibernate.hbm2ddl.auto
Automatically validates or exports schema DDL to the database when the
SessionFactory is created. With create-drop, the database schema will
be dropped when the SessionFactory is closed explicitly. e.g. validate
| update | create | create-drop

Running SparkR on YARN outputs an "Rscript execution" error

I have Spark 1.4.1 installed on an Hadoop 2.7 cluster.
I've started the SparkR shell without error:
bin/sparkR --master yarn-client
I've run the R command without error (introductory example from spark.apache.org) :
df <- createDataFrame(sqlContext, faithful)
When I run the command :
head(select(df, df$eruptions))
I get the following error at 15/09/02 10:08:29 on the executor node :
"Rscript execution error: No such file or directory".
Any hint would be greatly appreciated.
Spark tasks other than SparkR run OK on my YARN cluster.
R 3.2.1 is installed and runs OK on the driver node.
15/09/02 10:04:06 INFO executor.CoarseGrainedExecutorBackend: Registered signal handlers for [TERM, HUP, INT]
15/09/02 10:04:09 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
15/09/02 10:04:10 INFO spark.SecurityManager: Changing view acls to: yarn,root
15/09/02 10:04:10 INFO spark.SecurityManager: Changing modify acls to: yarn,root
15/09/02 10:04:10 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(yarn, root); users with modify permissions: Set(yarn, root)
15/09/02 10:04:11 INFO slf4j.Slf4jLogger: Slf4jLogger started
15/09/02 10:04:12 INFO Remoting: Starting remoting
15/09/02 10:04:12 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://driverPropsFetcher#datanode1.hp.com:46167]
15/09/02 10:04:12 INFO util.Utils: Successfully started service 'driverPropsFetcher' on port 46167.
15/09/02 10:04:12 INFO spark.SecurityManager: Changing view acls to: yarn,root
15/09/02 10:04:12 INFO spark.SecurityManager: Changing modify acls to: yarn,root
15/09/02 10:04:12 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(yarn, root); users with modify permissions: Set(yarn, root)
15/09/02 10:04:12 INFO remote.RemoteActorRefProvider$RemotingTerminator: Shutting down remote daemon.
15/09/02 10:04:12 INFO remote.RemoteActorRefProvider$RemotingTerminator: Remote daemon shut down; proceeding with flushing remote transports.
15/09/02 10:04:12 INFO remote.RemoteActorRefProvider$RemotingTerminator: Remoting shut down.
15/09/02 10:04:12 INFO slf4j.Slf4jLogger: Slf4jLogger started
15/09/02 10:04:12 INFO Remoting: Starting remoting
15/09/02 10:04:13 INFO util.Utils: Successfully started service 'sparkExecutor' on port 47919.
15/09/02 10:04:13 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://sparkExecutor#datanode1.hp.com:47919]
15/09/02 10:04:13 INFO storage.DiskBlockManager: Created local directory at /data2/hadoop/yarn/local/usercache/root/appcache/application_1441180800595_0001/blockmgr-5e435e40-bd36-4746-9acd-8cf1619033ae
15/09/02 10:04:13 INFO storage.DiskBlockManager: Created local directory at /data3/hadoop/yarn/local/usercache/root/appcache/application_1441180800595_0001/blockmgr-28dfabe6-8e0d-4e49-bc95-27b3428c10a0
15/09/02 10:04:13 INFO storage.MemoryStore: MemoryStore started with capacity 534.5 MB
15/09/02 10:04:13 INFO executor.CoarseGrainedExecutorBackend: Connecting to driver: akka.tcp://sparkDriver#192.1.1.1:45596/user/CoarseGrainedScheduler
15/09/02 10:04:13 INFO executor.CoarseGrainedExecutorBackend: Successfully registered with driver
15/09/02 10:04:13 INFO executor.Executor: Starting executor ID 2 on host datanode1.hp.com
15/09/02 10:04:14 INFO util.Utils: Successfully started service 'org.apache.spark.network.netty.NettyBlockTransferService' on port 34166.
15/09/02 10:04:14 INFO netty.NettyBlockTransferService: Server created on 34166
15/09/02 10:04:14 INFO storage.BlockManagerMaster: Trying to register BlockManager
15/09/02 10:04:14 INFO storage.BlockManagerMaster: Registered BlockManager
15/09/02 10:06:35 INFO executor.CoarseGrainedExecutorBackend: Got assigned task 0
15/09/02 10:06:35 INFO executor.Executor: Running task 0.0 in stage 0.0 (TID 0)
15/09/02 10:06:35 INFO broadcast.TorrentBroadcast: Started reading broadcast variable 0
15/09/02 10:06:35 INFO storage.MemoryStore: ensureFreeSpace(854) called with curMem=0, maxMem=560497950
15/09/02 10:06:35 INFO storage.MemoryStore: Block broadcast_0_piece0 stored as bytes in memory (estimated size 854.0 B, free 534.5 MB)
15/09/02 10:06:35 INFO broadcast.TorrentBroadcast: Reading broadcast variable 0 took 159 ms
15/09/02 10:06:35 INFO storage.MemoryStore: ensureFreeSpace(1280) called with curMem=854, maxMem=560497950
15/09/02 10:06:35 INFO storage.MemoryStore: Block broadcast_0 stored as values in memory (estimated size 1280.0 B, free 534.5 MB)
15/09/02 10:06:35 INFO executor.Executor: Finished task 0.0 in stage 0.0 (TID 0). 11589 bytes result sent to driver
15/09/02 10:08:28 INFO executor.CoarseGrainedExecutorBackend: Got assigned task 1
15/09/02 10:08:28 INFO executor.Executor: Running task 0.0 in stage 1.0 (TID 1)
15/09/02 10:08:28 INFO broadcast.TorrentBroadcast: Started reading broadcast variable 1
15/09/02 10:08:28 INFO storage.MemoryStore: ensureFreeSpace(4022) called with curMem=0, maxMem=560497950
15/09/02 10:08:28 INFO storage.MemoryStore: Block broadcast_1_piece0 stored as bytes in memory (estimated size 3.9 KB, free 534.5 MB)
15/09/02 10:08:28 INFO broadcast.TorrentBroadcast: Reading broadcast variable 1 took 13 ms
15/09/02 10:08:28 INFO storage.MemoryStore: ensureFreeSpace(9536) called with curMem=4022, maxMem=560497950
15/09/02 10:08:28 INFO storage.MemoryStore: Block broadcast_1 stored as values in memory (estimated size 9.3 KB, free 534.5 MB)
15/09/02 10:08:29 INFO r.BufferedStreamThread: Rscript execution error: No such file or directory
15/09/02 10:08:39 ERROR executor.Executor: Exception in task 0.0 in stage 1.0 (TID 1)
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at org.apache.spark.api.r.RRDD$.createRWorker(RRDD.scala:425)
at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:63)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:35)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:35)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:35)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:35)
at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:63)
at org.apache.spark.scheduler.Task.run(Task.scala:70)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:213)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

JBPM-console 404 not found

I have successfully installed JBPM 6.1.0.Final-Installer-Full. While opening the console at http://localhost:8080/jbpm-console it shows JBWEB000065: HTTP Status 404 - /jbpm-consoleIn the server administration console, it can be clearly seen that jbpm-cosole.war is successfully deployed.
Here is the log
12:40:35,812 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 35) JBAS010280: Activating Infinispan subsystem.
12:40:35,812 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 54) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
12:40:35,827 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 36) JBAS016300: Activating JacORB Subsystem
12:40:35,843 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 47) JBAS011800: Activating Naming Subsystem
12:40:35,859 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 43) JBAS012605: Activated the following JSF Implementations: [main, 1.2]
12:40:35,874 INFO [org.jboss.as.security] (ServerService Thread Pool -- 52) JBAS013171: Activating Security Subsystem
12:40:36,061 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 56) JBAS015537: Activating WebServices Extension
12:40:37,169 INFO [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version (unknown)
12:40:37,826 INFO [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.19.SP8-redhat-1
12:40:37,842 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 31) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
12:40:38,185 INFO [org.jboss.as.connector.logging] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (IronJacamar 1.0.26.Final-redhat-1)
12:40:39,605 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
12:40:39,620 INFO [org.jboss.jaxr] (MSC service thread 1-2) JBAS014000: Started JAXR subsystem, binding JAXR connection factory into JNDI as: java:jboss/jaxr/ConnectionFactory
12:40:39,636 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
12:40:40,512 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) JBWEB003001: Coyote HTTP/1.1 initializing on : http-localhost/127.0.0.1:8080
12:40:40,543 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) JBWEB003000: Coyote HTTP/1.1 starting on: http-localhost/127.0.0.1:8080
12:40:40,668 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory D:\jbpm-6.1.0.Final-installer-full\jbpm-installer\jboss-eap-6.3.0\standalone\deployments
12:40:40,699 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "jbpm-console.war" (runtime-name: "jbpm-console.war")
12:40:40,933 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221000: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=D:\jbpm-6.1.0.Final-installer-full\jbpm-installer\jboss-eap-6.3.0\standalone\data\messagingjournal,bindingsDirectory=D:\jbpm-6.1.0.Final-installer-full\jbpm-installer\jboss-eap-6.3.0\standalone\data\messagingbindings,largeMessagesDirectory=D:\jbpm-6.1.0.Final-installer-full\jbpm-installer\jboss-eap-6.3.0\standalone\data\messaginglargemessages,pagingDirectory=D:\jbpm-6.1.0.Final-installer-full\jbpm-installer\jboss-eap-6.3.0\standalone\data\messagingpaging)
12:40:40,933 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221006: Waiting to obtain live lock
12:40:41,260 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221013: Using NIO Journal
12:40:42,056 WARN [jacorb.codeset] (MSC service thread 1-3) Warning - unknown codeset (Cp1252) - defaulting to ISO-8859-1
12:40:42,619 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221034: Waiting to obtain live lock
12:40:42,619 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221035: Live Server Obtained live lock
12:40:42,790 INFO [org.jboss.as.jacorb] (MSC service thread 1-3) JBAS016330: CORBA ORB Service started
12:40:42,821 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1:9999
12:40:42,837 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1:4447
12:40:43,991 INFO [org.jboss.as.jacorb] (MSC service thread 1-3) JBAS016328: CORBA Naming Service started
12:40:45,302 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
12:40:45,302 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/jbpmDS]
12:40:46,628 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221020: Started Netty Acceptor version 3.6.9.Final-redhat-1-4cc400c 127.0.0.1:5445 for CORE protocol
12:40:46,628 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221020: Started Netty Acceptor version 3.6.9.Final-redhat-1-4cc400c 127.0.0.1:5455 for CORE protocol
12:40:46,643 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221007: Server is now live
12:40:46,643 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221001: HornetQ Server version 2.3.20.Final (2.3.20, 123) [517089d3-7ea9-11e4-88c9-2d52a55890f3]
12:40:46,894 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 58) JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory
12:40:46,960 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 58) HQ221003: trying to deploy queue jms.queue.ExpiryQueue
12:40:46,976 INFO [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.0.Final-redhat-3
12:40:47,132 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-3) JBAS010406: Registered connection factory java:/JmsXA
12:40:47,584 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 58) JBAS011601: Bound messaging object to jndi name java:/jms/queue/ExpiryQueue
12:40:47,584 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 59) JBAS011601: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
12:40:47,600 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221003: trying to deploy queue jms.queue.DLQ
12:40:47,647 INFO [org.jboss.as.messaging] (ServerService Thread Pool -- 60) JBAS011601: Bound messaging object to jndi name java:/jms/queue/DLQ
12:40:47,662 INFO [org.hornetq.ra] (MSC service thread 1-3) HornetQ resource adaptor started
12:40:47,662 INFO [org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-3) IJ020002: Deployed: file://RaActivatorhornetq-ra
12:40:47,662 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-3) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
12:42:27,884 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."jbpm-console.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm-console.war".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "jbpm-console.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60-ea]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60-ea]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018774: Error loading jboss-all.xml from D:\jbpm-6.1.0.Final-installer-full\jbpm-installer\jboss-eap-6.3.0\standalone\tmp\vfs\temp\temp6c761dcbf5747a8a\jbpm-console.war-2f4b0c1a30bca435\META-INF\jboss-all.xml
at org.jboss.as.server.deployment.jbossallxml.JBossAllXMLParsingProcessor.parse(JBossAllXMLParsingProcessor.java:153) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.server.deployment.jbossallxml.JBossAllXMLParsingProcessor.parse(JBossAllXMLParsingProcessor.java:128) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.server.deployment.jbossallxml.JBossAllXMLParsingProcessor.deploy(JBossAllXMLParsingProcessor.java:96) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
... 5 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[18,3]
Message: Unexpected element '{urn:jboss:weld:1.0}weld'
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
at org.jboss.as.server.deployment.jbossallxml.JBossAllXMLParsingProcessor$Parser.parseJBossElement(JBossAllXMLParsingProcessor.java:203) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.server.deployment.jbossallxml.JBossAllXMLParsingProcessor$Parser.readElement(JBossAllXMLParsingProcessor.java:192) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.server.deployment.jbossallxml.JBossAllXMLParsingProcessor$Parser.readElement(JBossAllXMLParsingProcessor.java:176) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.server.deployment.jbossallxml.JBossAllXMLParsingProcessor.parse(JBossAllXMLParsingProcessor.java:148) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
... 8 more
12:42:28,067 INFO [org.jboss.as.server] (ServerService Thread Pool -- 32) JBAS018559: Deployed "jbpm-console.war" (runtime-name : "jbpm-console.war")
12:42:28,072 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."jbpm-console.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm-console.war".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "jbpm-console.war"
12:42:28,541 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
12:42:28,545 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
12:42:28,549 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.3.0.GA (AS 7.4.0.Final-redhat-19) started (with errors) in 125341ms - Started 197 of 235 services (1 services failed or missing dependencies, 67 services are lazy, passive or on-demand)
Please guide me here.
I was having same issue while I was following steps here to install jBPM:
http://docs.jboss.org/jbpm/v6.3/userguide/ch03.html
I got stuck on
tart.h2.check:
[echo] Checking if h2 db should be started ...
start.h2:
start.jboss:
start.demo.noeclipse:
BUILD SUCCESSFUL Total time: 14 seconds
I was getting Error 404 in
http://localhost:8080/jbpm-console
What I needed to do was visit WildFly administrative console
http://localhost:8080/console
and found out that a user must be created using
\jbpm-installer\wildfly-8.2.1.Final\bin\add-user.bat
That fixed my problem.
But before any of that:
Wait a minute or two, normally it takes a while to start.
It failed to start the jbpm-console, having issues parsing the jboss-all.xml in the war. Which application server are you using? If you are trying to install on another server than the (default) Wildfly, try deleting the jbpm-console war from the lib directory so it can download the right war for the application server again.

Resources