报错:org.apache.sqoop.common.SqoopException Message: CLIENT_0001:Server has returned exception NoClassDefFoundError: org/codehaus/jackson/map/JsonMappingException
报错背景:
CDH集成sqoop2服务之后,创建好link和job之后,执行job的时候报错。
报错现象:
sqoop:> start job -j
Exception has occurred during processing command
Exception: org.apache.sqoop.common.SqoopException Message: CLIENT_0001:Server has returned exception - <html><head><title>Apache Tomcat/6.0. - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status - Servlet execution threw an exception</h1><HR size="" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>Servlet execution threw an exception</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet execution threw an exception
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:)
org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:)
</pre></p><p><b>root cause</b> <pre>java.lang.NoClassDefFoundError: org/codehaus/jackson/map/JsonMappingException
org.apache.hadoop.mapreduce.Job.getJobSubmitter(Job.java:)
org.apache.hadoop.mapreduce.Job.submit(Job.java:)
org.apache.sqoop.submission.mapreduce.MapreduceSubmissionEngine.submitToCluster(MapreduceSubmissionEngine.java:)
org.apache.sqoop.submission.mapreduce.MapreduceSubmissionEngine.submit(MapreduceSubmissionEngine.java:)
org.apache.sqoop.driver.JobManager.start(JobManager.java:)
org.apache.sqoop.handler.JobRequestHandler.startJob(JobRequestHandler.java:)
org.apache.sqoop.handler.JobRequestHandler.handleEvent(JobRequestHandler.java:)
org.apache.sqoop.server.v1.JobServlet.handlePutRequest(JobServlet.java:)
org.apache.sqoop.server.SqoopProtocolServlet.doPut(SqoopProtocolServlet.java:)
javax.servlet.http.HttpServlet.service(HttpServlet.java:)
javax.servlet.http.HttpServlet.service(HttpServlet.java:)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:)
org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:)
</pre></p><p><b>root cause</b> <pre>java.lang.ClassNotFoundException: org.codehaus.jackson.map.JsonMappingException
java.net.URLClassLoader.findClass(URLClassLoader.java:)
java.lang.ClassLoader.loadClass(ClassLoader.java:)
java.lang.ClassLoader.loadClass(ClassLoader.java:)
org.apache.hadoop.mapreduce.Job.getJobSubmitter(Job.java:)
org.apache.hadoop.mapreduce.Job.submit(Job.java:)
org.apache.sqoop.submission.mapreduce.MapreduceSubmissionEngine.submitToCluster(MapreduceSubmissionEngine.java:)
org.apache.sqoop.submission.mapreduce.MapreduceSubmissionEngine.submit(MapreduceSubmissionEngine.java:)
org.apache.sqoop.driver.JobManager.start(JobManager.java:)
org.apache.sqoop.handler.JobRequestHandler.startJob(JobRequestHandler.java:)
org.apache.sqoop.handler.JobRequestHandler.handleEvent(JobRequestHandler.java:)
org.apache.sqoop.server.v1.JobServlet.handlePutRequest(JobServlet.java:)
org.apache.sqoop.server.SqoopProtocolServlet.doPut(SqoopProtocolServlet.java:)
javax.servlet.http.HttpServlet.service(HttpServlet.java:)
javax.servlet.http.HttpServlet.service(HttpServlet.java:)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:)
org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0. logs.</u></p><HR size="" noshade="noshade"><h3>Apache Tomcat/6.0.</h3></body></html> Stack trace:
at org.apache.sqoop.client.request.ResourceRequest (ResourceRequest.java:)
at org.apache.sqoop.client.request.ResourceRequest (ResourceRequest.java:)
at org.apache.sqoop.client.request.JobResourceRequest (JobResourceRequest.java:)
at org.apache.sqoop.client.request.SqoopResourceRequests (SqoopResourceRequests.java:)
at org.apache.sqoop.client.SqoopClient (SqoopClient.java:)
at org.apache.sqoop.shell.StartJobFunction (StartJobFunction.java:)
at org.apache.sqoop.shell.SqoopFunction (SqoopFunction.java:)
at org.apache.sqoop.shell.SqoopCommand (SqoopCommand.java:)
at org.apache.sqoop.shell.SqoopCommand (SqoopCommand.java:)
at org.codehaus.groovy.tools.shell.Command$execute (null:-)
at org.codehaus.groovy.tools.shell.Shell (Shell.groovy:)
at org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:-)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:)
at sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method (Method.java:)
at org.codehaus.groovy.reflection.CachedMethod (CachedMethod.java:)
at groovy.lang.MetaMethod (MetaMethod.java:)
at groovy.lang.MetaClassImpl (MetaClassImpl.java:)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:)
at org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:)
at sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method (Method.java:)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce (PogoMetaMethodSite.java:)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite (PogoMetaMethodSite.java:)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:)
at org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:)
at org.codehaus.groovy.tools.shell.Shell (Shell.groovy:)
at org.codehaus.groovy.tools.shell.Shell$leftShift$ (null:-)
at org.codehaus.groovy.tools.shell.ShellRunner (ShellRunner.groovy:)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner (InteractiveShellRunner.groovy:-)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:)
at sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method (Method.java:)
at org.codehaus.groovy.reflection.CachedMethod (CachedMethod.java:)
at groovy.lang.MetaMethod (MetaMethod.java:)
at groovy.lang.MetaClassImpl (MetaClassImpl.java:)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner (InteractiveShellRunner.groovy:)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:)
at sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method (Method.java:)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce (PogoMetaMethodSite.java:)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite (PogoMetaMethodSite.java:)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:)
at org.codehaus.groovy.tools.shell.ShellRunner (ShellRunner.groovy:)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner (InteractiveShellRunner.groovy:-)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:-)
at sun.reflect.NativeMethodAccessorImpl (NativeMethodAccessorImpl.java:)
at sun.reflect.DelegatingMethodAccessorImpl (DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method (Method.java:)
at org.codehaus.groovy.reflection.CachedMethod (CachedMethod.java:)
at groovy.lang.MetaMethod (MetaMethod.java:)
at groovy.lang.MetaClassImpl (MetaClassImpl.java:)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter (ScriptBytecodeAdapter.java:)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner (InteractiveShellRunner.groovy:)
at java_lang_Runnable$run (null:-)
at org.codehaus.groovy.runtime.callsite.CallSiteArray (CallSiteArray.java:)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite (AbstractCallSite.java:)
at org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:)
at org.codehaus.groovy.tools.shell.Groovysh (Groovysh.groovy:)
at org.apache.sqoop.shell.SqoopShell (SqoopShell.java:)
sqoop:>
报错原因:
(1) 查看详细报错情况
sqoop:000> set option --name verbose --value true
(2) 发现报错日志里面有这么一句话
java.lang.ClassNotFoundException: org.codehaus.jackson.map.JsonMappingException
(3) 可以判断出没有这个jar包
可以试着将这jar包拷进sqoop2的jar包目录。
报错解决:
(1) 进入到CDH存放jar包的目录
cd /opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/jars/
(2) 将 jackson-core-asl-1.8.8.jar 和 jackson-mapper-asl-1.8.8.jar 复制到安装sqoop2服务器下 /var/lib/sqoop2
cp jackson-core-asl-1.8.8.jar jackson-mapper-asl-1.8.8.jar /var/lib/sqoop2
(3) 重启sqoop2服务,报错解决。
报错:org.apache.sqoop.common.SqoopException Message: CLIENT_0001:Server has returned exception NoClassDefFoundError: org/codehaus/jackson/map/JsonMappingException的更多相关文章
- 报错:Exception: org.apache.sqoop.common.SqoopException Message: DRIVER_0002:Given job is already running - Job with id 1
报错背景: 创建完成job之后,执行job的时候报错. 报错现象: Exception: org.apache.sqoop.common.SqoopException Message: CLIENT_ ...
- 报错:java.lang.ClassNotFoundException: org.codehaus.jackson.map.JsonMappingException
报错背景: 执行hdfs-mysql的job任务的时候报错. 报错现象: Exception has occurred during processing command Exception: org ...
- SpringMVC 集成 jackson,日志格式报错:org.codehaus.jackson.map.JsonMappingException: Can not construct instance of java.util.Date from String value
org.codehaus.jackson.map.JsonMappingException: Can not construct instance of java.util.Date from Str ...
- selenium的报错信息:selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: Compound class names not permitted
报错信息:selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: Compound class ...
- 用java运行Hadoop程序报错:org.apache.hadoop.fs.LocalFileSystem cannot be cast to org.apache.
用java运行Hadoop例程报错:org.apache.hadoop.fs.LocalFileSystem cannot be cast to org.apache.所写代码如下: package ...
- mavne install 报错org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException
maven install 报错 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.Invoc ...
- 【原创】大叔问题定位分享(10)提交spark任务偶尔报错 org.apache.spark.SparkException: A master URL must be set in your configuration
spark 2.1.1 一 问题重现 问题代码示例 object MethodPositionTest { val sparkConf = new SparkConf().setAppName(&qu ...
- maven构建报错org.apache.maven.lifecycle.LifecycleExecutionException
2017年06月04日 15:03:10 阅读数:7991 maven构建报错 org.apache.maven.lifecycle.LifecycleExecutionException: Fail ...
- 报错org.apache.ibatis.binding.BindingException: Type interface com.atguigu.mybatis.bean.dao.EmployeeMapper is not known to the MapperRegistry.
报错org.apache.ibatis.binding.BindingException: Type interface com.atguigu.mybatis.bean.dao.EmployeeMa ...
随机推荐
- php自定义函数之回调函数
回调函数,可以配合匿名函数和变量函数实现更加优美.复杂的一种函数结构.大理石平台价格 回调函数,就是在处理一个功能的时候,我让让这个功能自定义能力再强一些,我准许调用这个函数的时候,还可以传入一个函数 ...
- MongoDB 查看集合的统计信息
和 RDBMS 一样, MongoDB 同样存储集合的统计信息,通过调用命令 db.collection.stats() 可以方便的查看集合的统计信息. --1 查看集合 things 的统计信息 r ...
- YAML_02 playbook的ping脚本检测
ansible]# vim ping.yml --- - hosts: all remote_user: root tasks: - ping: ansible]# ansible- ...
- input重复上传图片失效的问题
使用input的file来上传图片 如果是重复选择相同的图片就会失效 解决的办法就是当每次上传完图片后让input的值为空就可以解决了 附上代码 只需在末尾添加这句就行$(this).val(&quo ...
- 计数 luogu 4223 期望逆序对
https://www.luogu.org/problemnew/show/P4223 期望乘以\(\binom {n}{2}^k\)变成了计数问题 我们考虑每一组数\((A, B)\)产生的贡献CC ...
- BZOJ 1073: [SCOI2007]kshort
二次联通门 : BZOJ 1073: [SCOI2007]kshort /* BZOJ 1073: [SCOI2007]kshort A* k短路 但是会爆一个点, 是卡A*的 */ #include ...
- Fiddler抓取https请求证书问题【转载】
转载链接: https://www.cnblogs.com/liulinghua90/p/9109282.html
- python3 之metaclass
如果希望创建某一批类全部具有某种特征,则可通过 metaclass 来实现.使用 metaclass 可以在创建类时动态修改类定义. 为了使用 metaclass 动态修改类定义,程序需要先定义 me ...
- office project visio 2019
office2019,2016,2013,2010 Visio.Project 各版本下载激活!点我! http://blog.sina.com.cn/s/blog_170abd40a0102yah2 ...
- useContext 让父子组件传值更简单(五)
有了useState和useEffect已经可以实现大部分的业务逻辑了,但是React Hooks中还是有很多好用的Hooks函数的,比如useContext和useReducer. 在用类声明组件时 ...