How to use write and run MapReduce in eclipse on windows.
2013-04-11 20:01
543 查看
(1) Configure hadoop-eclipse-plugin-1.0.3.jar
\\192.168.1.19\development\GroupM\Softwares\hadoop\hadoop-eclipse-plugin-1.0.3.jar
(2) copy all the jar file in the hadoop into your classpath.
(3) copy hbase\hbase-0.*.*.jar, hbase\lib\zookeeper-3.4.3.jar into your classpath.
(4) copy hbase-site.xml into your classpath.
(5) Modify org.apache.hadoop.fs.FileUtil.java
private static void checkReturnValue(boolean rv, File p,
FsPermission permission
) throws IOException {
/*if (!rv) {
throw new IOException("Failed to set permissions of path: " + p +
" to " +
String.format("%04o", permission.toShort()));
}*/
}
For this problem:
ERROR security.UserGroupInformation: PriviledgedActionException as:C5176213
cause:java.io.IOException: Failed to set permissions of path
(6) Modify hbase-site.xml in your project
Add these properties.
<property>
<name>mapred.job.tracker</name>
<value>ubuntu-api:9001</value>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
(6) copy hbase\hbase-0.*.*.jar, hbase\lib\zookeeper-3.4.3.jar to the hadoop\lib on all the
hadoop machine.
\\192.168.1.19\development\GroupM\Softwares\hadoop\hadoop-eclipse-plugin-1.0.3.jar
(2) copy all the jar file in the hadoop into your classpath.
(3) copy hbase\hbase-0.*.*.jar, hbase\lib\zookeeper-3.4.3.jar into your classpath.
(4) copy hbase-site.xml into your classpath.
(5) Modify org.apache.hadoop.fs.FileUtil.java
private static void checkReturnValue(boolean rv, File p,
FsPermission permission
) throws IOException {
/*if (!rv) {
throw new IOException("Failed to set permissions of path: " + p +
" to " +
String.format("%04o", permission.toShort()));
}*/
}
For this problem:
ERROR security.UserGroupInformation: PriviledgedActionException as:C5176213
cause:java.io.IOException: Failed to set permissions of path
(6) Modify hbase-site.xml in your project
Add these properties.
<property>
<name>mapred.job.tracker</name>
<value>ubuntu-api:9001</value>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
(6) copy hbase\hbase-0.*.*.jar, hbase\lib\zookeeper-3.4.3.jar to the hadoop\lib on all the
hadoop machine.
相关文章推荐
- How to compile and run a simple java file in jenkins on Windows
- how to write and run jpa idempotent on mysql
- Run Nutch In Eclipse on Linux and Windows nutch version 1.0
- How to install and run Microsoft Windows for free on Linux
- Run Nutch In Eclipse on Linux and Windows nutch version 0.9
- How to Run Mac OS X in VirtualBox on Windows
- How to compile and debug VLC player source code in eclipse IDE on Ubuntu 10.04 (lucid)
- How to run eclipse in clean mode? and what happens if we do so?
- How to Access and Use the Windows Hosts File in Windows 7 and Vista
- How to use .netrc file on windows to save user and password
- 转载自wiki:Run Nutch In Eclipse on Linux and Windows nutch version 1.0
- how to write your annotation types and make use of built-in annotations to control their behavior
- How to compile and debug VLC player source code in eclipse IDE on Ubuntu 10.04 (lucid)?
- Run Nutch In Eclipse on Linux and Windows nutch version 0.9
- How can I force Python's file.write() to use the same newline format in Windows as in Linux (“\r\n”
- How to use Pageheap.exe in Windows XP, Windows 2000, and Windows Server 2003
- [Mootools] Simple tutorial of how to use domReady, DOM operation and Ajax in Mootools
- WampDeveloper Pro is the best (and fastest) way to create and run multiple websites on Windows, usin
- HOWTO: How to Use PeekMessage() Correctly in Windows
- How To Use Function 'F4_FILENAME' and 'KD_GET_FILENAME_ON_F4'