Home > other >  [online solutions can't] RunJar jarFile [mainClass] args...
[online solutions can't] RunJar jarFile [mainClass] args...

Time:11-11

Environment I match well,
Video using jdk_1. 8 _144 what I use is jdk_1. 8 _181,
Hadoop - 2.7.2

The command line run the following code complains
[Aite @ hadoop101 hadoop - 2.7.2] $hadoop jar
RunJar jarFile [mainClass] args...

Online said: jar is not specified main method
A solve method is through the eclipse some action, but I see on the video also don't need the operation of the eclipse,
Another way is to configure the manifest file, but I can't find the file, baidu did not find the position,

Have bosses know how to solve ah, all blocked me half a day, bosses, genuflect is begged!!!

I watch the video on the statement of correct operation following
[Aite @ hadoop101 hadoop - 2.7.2] $hadoop jar
bin/include/lib/LICENSE. TXT READE. TXT share/
The/etc/input/libexec/NOTICE. TXT sbin/

CodePudding user response:

Not to stay up late,

CodePudding user response:

A great god,

CodePudding user response:

Is that this problem is too weak-minded,,,,

CodePudding user response:

Execute hadoop jar to press the TAB key after
Probably by two times,

CodePudding user response:

Hadoop jar performed the original poster notice, the video is not really a command, not directly and press enter to perform, but need to press the Tab key to tip jar file is located under the two paths, because its purpose is to find the jar file path. You can have a look at the video carefully, listen to the teacher that moment the sound of the keyboard, shows that when the teacher enter hadoop jar, keyboard twice in a row, presumably, not hitting two consecutive enter... After speculation and experiments, the teacher had two consecutive hit the Tab key. You can have a try, you will see the results you want! I wonder if stated clearly, hope to adopt!

CodePudding user response:

To ask, is there any solution, I press the TAB key under two also can not ah

CodePudding user response:

The building Lord, did you solve it, share it

CodePudding user response:

Behind the hadoop jar to keep up with the class of operation, parameter...


Packaging, you how to check the packaging bag inside have a MANIFEST file. The MF
Here will be to develop the main function
To check, if not, find out how to pack

Meta-inf
- the MANIFEST. MF

CodePudding user response:

I also encountered this problem today,
3. Perform share program in the directory
[atguigu @ hadoop101 hadoop - 2.7.2] $bin/hadoop jar
Share/hadoop/graphs/hadoop - graphs - examples - 2.7.2. Jar grep input output 'DFS [a-z.] +'
Thought for a moment, is the line, is actually a word, not only performs bin/hadoop jar, ha ha
  • Related