Re: ClassNotFoundException on job submit

2017-10-26 Thread Stefan Miklosovic
Ok I am getting somewhere: @RunWith(JUnit4.class) public class LivyTestCase { private static final int SAMPLES = 1; private static final String LIVY_URI = "http://spark-master:8998;; @Rule public TemporaryFolder jarFolder = new TemporaryFolder(); @Test public void

Re: ClassNotFoundException on job submit

2017-10-26 Thread Stefan Miklosovic
I think I have to add a jar with PiJob on the classpath of Livy so it knows how to deserialize it hm On Thu, Oct 26, 2017 at 5:24 PM, Stefan Miklosovic wrote: > I have did it as you suggested and it seems to start the jobs OK and I > see the sessions in UI but

Re: ClassNotFoundException on job submit

2017-10-26 Thread Stefan Miklosovic
I have did it as you suggested and it seems to start the jobs OK and I see the sessions in UI but while it is being computed (I see the job is distributed on two spark slaves where in front of that there is spark-master), I am computing this from my localhost: @RunWith(JUnit4.class) public class

Re: ClassNotFoundException on job submit

2017-10-26 Thread Saisai Shao
You can choose to set "livy.spark.master" to "local" and "livy.spark.deploy-mode" to "client" to start Spark with local mode, in such case YARN is not required. Otherwise if you plan to run on YARN, you have to install Hadoop and configure HADOOP_CONF_DIR in livy-env.sh. On Thu, Oct 26, 2017 at