mapred.YARNRunner: Job jar is not present. Not adding any jar to the list of resources.
2017-02-04 14:05
639 查看
问题:
在eclipse中直接运行Hadoop程序时,可以正常输出结果。但是导出jar包后,在命令行执行后,提示警告并且抛出ClassNotFoundException。原因:
在eclipse中直接运行Hadoop程序时,可以正常输出结果,是因为把job提交到本地(mapred.LocalJobRunner)执行。导出jar包后在命令行执行失败,是因为把job提交到了集群(Yarn)。解决方法:
在提交程序前添加下面的设置conf.set("mapred.jar", "mr01.jar"); //其中mr01.jar是你的导出的jar文件名。
相关文章推荐
- IIS7.5+win7 The Web server is configured to not list the contents of this directory
- IIS 7 The Web server is configured to not list the contents of this directory
- The Web server is configured to not list the contents of this directory.
- How to Fix “HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents of this directory”
- The Web server is configured to not list the contents of this directory
- 解决asp.net error: Operation is not valid due to the current state of the object
- 错误解决:Unable to add module to the current project as it is not of packagi
- The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for
- Error 28905.WiDbLoc:Could not list of fields to localize from the database
- The application is not licensed to modify or create schema for this type of data 解决办法
- 'ddlCities' has a SelectedValue which is invalid because it does not exist in the list of items
- Operation is not valid due to the current state of the object.
- Error occurred in deployment step ‘Activate Features’: Operation is not valid due to the current state of the object
- 对象的当前状态使该操作无效 or SPListItem Update Operation is not valid due to the current state of the object
- cluvfy - CRS is not installed on any of the nodes
- System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException: Operation is not valid due to the current state of the obj
- It is not possible to run two different versions of ASP.NET in the same IIS process.问题的解决
- xxxx.accessor: The reference to 'xxxx' was not found in the list of this projects references
- It is not possible to run two different versions of ASP.NET in the same IIS process
- Error: timeout expired. the timeout period elapsed prior to completion of the operation or the server is not responding (Microso