Error while deploying samza job in yarn cluster
I am trying to deploy my samza job in yarn cluster but getting following error:
Logs:
2018-11-11 04:59:53,110 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:transition(1369)) - The number of failed attempts is 2. The max attempts is 2
2018-11-11 04:59:53,110 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:rememberTargetTransitionsAndStoreState(1136)) - Updating application application_1541910009112_0003 with final state: FAILED
2018-11-11 04:59:53,146 INFO [AsyncDispatcher event handler] recovery.RMStateStore (RMStateStore.java:transition(239)) - Updating info for app: application_1541910009112_0003
2018-11-11 04:59:53,147 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:handle(815)) - application_1541910009112_0003 State change from ACCEPTED to FINAL_SAVING on event=ATTEMPT_FAILED
2018-11-11 04:59:53,147 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:transition(1076)) - Application application_1541910009112_0003 failed 2 times due to AM Container for appattempt_1541910009112_0003_000002 exited with exitCode: -1000
Error Details:
Failing this attempt.Diagnostics: org/apache/commons/httpclient/HttpMethod
java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2306)
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2271)
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2367)
at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2793)
I can see commons-httpclient-3.1.jar packaged inside samzajobs-0.0.1-SNAPSHOT-dist.tar.gz
This is the source code of the samza job :
package jobs.samzajobs;
import org.apache.samza.config.Config;
import org.apache.samza.system.IncomingMessageEnvelope;
import org.apache.samza.task.InitableTask;
import org.apache.samza.task.MessageCollector;
import org.apache.samza.task.StreamTask;
import org.apache.samza.task.TaskContext;
import org.apache.samza.task.TaskCoordinator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestJob implements StreamTask,InitableTask{
private static final Logger logger = LoggerFactory.getLogger(TestJob.class);
public void process(IncomingMessageEnvelope envelope, MessageCollector collector, TaskCoordinator coordinator)
throws Exception {
logger.debug("inside process....");
}
public void init(Config config, TaskContext context) throws Exception {
logger.debug("initializing task..");
}
}
Can someone please tell, what could be wrong with the deployment?
java yarn apache-samza
add a comment |
I am trying to deploy my samza job in yarn cluster but getting following error:
Logs:
2018-11-11 04:59:53,110 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:transition(1369)) - The number of failed attempts is 2. The max attempts is 2
2018-11-11 04:59:53,110 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:rememberTargetTransitionsAndStoreState(1136)) - Updating application application_1541910009112_0003 with final state: FAILED
2018-11-11 04:59:53,146 INFO [AsyncDispatcher event handler] recovery.RMStateStore (RMStateStore.java:transition(239)) - Updating info for app: application_1541910009112_0003
2018-11-11 04:59:53,147 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:handle(815)) - application_1541910009112_0003 State change from ACCEPTED to FINAL_SAVING on event=ATTEMPT_FAILED
2018-11-11 04:59:53,147 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:transition(1076)) - Application application_1541910009112_0003 failed 2 times due to AM Container for appattempt_1541910009112_0003_000002 exited with exitCode: -1000
Error Details:
Failing this attempt.Diagnostics: org/apache/commons/httpclient/HttpMethod
java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2306)
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2271)
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2367)
at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2793)
I can see commons-httpclient-3.1.jar packaged inside samzajobs-0.0.1-SNAPSHOT-dist.tar.gz
This is the source code of the samza job :
package jobs.samzajobs;
import org.apache.samza.config.Config;
import org.apache.samza.system.IncomingMessageEnvelope;
import org.apache.samza.task.InitableTask;
import org.apache.samza.task.MessageCollector;
import org.apache.samza.task.StreamTask;
import org.apache.samza.task.TaskContext;
import org.apache.samza.task.TaskCoordinator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestJob implements StreamTask,InitableTask{
private static final Logger logger = LoggerFactory.getLogger(TestJob.class);
public void process(IncomingMessageEnvelope envelope, MessageCollector collector, TaskCoordinator coordinator)
throws Exception {
logger.debug("inside process....");
}
public void init(Config config, TaskContext context) throws Exception {
logger.debug("initializing task..");
}
}
Can someone please tell, what could be wrong with the deployment?
java yarn apache-samza
add a comment |
I am trying to deploy my samza job in yarn cluster but getting following error:
Logs:
2018-11-11 04:59:53,110 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:transition(1369)) - The number of failed attempts is 2. The max attempts is 2
2018-11-11 04:59:53,110 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:rememberTargetTransitionsAndStoreState(1136)) - Updating application application_1541910009112_0003 with final state: FAILED
2018-11-11 04:59:53,146 INFO [AsyncDispatcher event handler] recovery.RMStateStore (RMStateStore.java:transition(239)) - Updating info for app: application_1541910009112_0003
2018-11-11 04:59:53,147 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:handle(815)) - application_1541910009112_0003 State change from ACCEPTED to FINAL_SAVING on event=ATTEMPT_FAILED
2018-11-11 04:59:53,147 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:transition(1076)) - Application application_1541910009112_0003 failed 2 times due to AM Container for appattempt_1541910009112_0003_000002 exited with exitCode: -1000
Error Details:
Failing this attempt.Diagnostics: org/apache/commons/httpclient/HttpMethod
java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2306)
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2271)
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2367)
at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2793)
I can see commons-httpclient-3.1.jar packaged inside samzajobs-0.0.1-SNAPSHOT-dist.tar.gz
This is the source code of the samza job :
package jobs.samzajobs;
import org.apache.samza.config.Config;
import org.apache.samza.system.IncomingMessageEnvelope;
import org.apache.samza.task.InitableTask;
import org.apache.samza.task.MessageCollector;
import org.apache.samza.task.StreamTask;
import org.apache.samza.task.TaskContext;
import org.apache.samza.task.TaskCoordinator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestJob implements StreamTask,InitableTask{
private static final Logger logger = LoggerFactory.getLogger(TestJob.class);
public void process(IncomingMessageEnvelope envelope, MessageCollector collector, TaskCoordinator coordinator)
throws Exception {
logger.debug("inside process....");
}
public void init(Config config, TaskContext context) throws Exception {
logger.debug("initializing task..");
}
}
Can someone please tell, what could be wrong with the deployment?
java yarn apache-samza
I am trying to deploy my samza job in yarn cluster but getting following error:
Logs:
2018-11-11 04:59:53,110 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:transition(1369)) - The number of failed attempts is 2. The max attempts is 2
2018-11-11 04:59:53,110 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:rememberTargetTransitionsAndStoreState(1136)) - Updating application application_1541910009112_0003 with final state: FAILED
2018-11-11 04:59:53,146 INFO [AsyncDispatcher event handler] recovery.RMStateStore (RMStateStore.java:transition(239)) - Updating info for app: application_1541910009112_0003
2018-11-11 04:59:53,147 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:handle(815)) - application_1541910009112_0003 State change from ACCEPTED to FINAL_SAVING on event=ATTEMPT_FAILED
2018-11-11 04:59:53,147 INFO [AsyncDispatcher event handler] rmapp.RMAppImpl (RMAppImpl.java:transition(1076)) - Application application_1541910009112_0003 failed 2 times due to AM Container for appattempt_1541910009112_0003_000002 exited with exitCode: -1000
Error Details:
Failing this attempt.Diagnostics: org/apache/commons/httpclient/HttpMethod
java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2306)
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2271)
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2367)
at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2793)
I can see commons-httpclient-3.1.jar packaged inside samzajobs-0.0.1-SNAPSHOT-dist.tar.gz
This is the source code of the samza job :
package jobs.samzajobs;
import org.apache.samza.config.Config;
import org.apache.samza.system.IncomingMessageEnvelope;
import org.apache.samza.task.InitableTask;
import org.apache.samza.task.MessageCollector;
import org.apache.samza.task.StreamTask;
import org.apache.samza.task.TaskContext;
import org.apache.samza.task.TaskCoordinator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestJob implements StreamTask,InitableTask{
private static final Logger logger = LoggerFactory.getLogger(TestJob.class);
public void process(IncomingMessageEnvelope envelope, MessageCollector collector, TaskCoordinator coordinator)
throws Exception {
logger.debug("inside process....");
}
public void init(Config config, TaskContext context) throws Exception {
logger.debug("initializing task..");
}
}
Can someone please tell, what could be wrong with the deployment?
java yarn apache-samza
java yarn apache-samza
edited Nov 21 at 5:00
user5377037
7,247122456
7,247122456
asked Nov 11 at 6:57
hitesh
40211
40211
add a comment |
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246524%2ferror-while-deploying-samza-job-in-yarn-cluster%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246524%2ferror-while-deploying-samza-job-in-yarn-cluster%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown