English 中文(简体)
Executing helloworld.java in apache hadoop
原标题:Executing helloworld.java in apache hadoop
  • 时间:2011-02-02 12:18:10
  •  标签:
  • java
  • hadoop

一些人可以告诉我,我可以如何执行我的“热爱世界”。 java in apache haveoop

class Helloworld  
{  
  public static void main(String[] args)  
   {  
    Sytem.out.println("HelloWorld");  
    }  
 }

Am running a single node. Kindly tell me how can i run this piece of code or pls a send a link which is understandable for an absolute beginner.

最佳回答

单靠 had管的方式是由指挥部管理。

$HADOOP_HOME/bin/hadoop jar [your_jar_file]

也可以使用<条码>-jar<>/代码>强迫其从事当地工作。 玩.和 de。

While I haven t tested with such a simple application, I think it should print the line and then be done. Don t hold me to that though. :-P

您可能需要具体说明<代码>main。 http://www.ohchr.org。 我的法典就是这样。

我希望能够提供帮助。 正如其他答复中提到的那样,如果不着手创造就业机会和地图,那么Hadoop就不会有收益。

问题回答

就我所知,就你的情况而言,阿普切 had不相干。 你们的问题是,“怎样才能在 j子里打造世界吗?

如果我的假设正确,则采取下列行动:

  1. install JDK
  2. compile your java code using command javac Helloworld.java. You have to run this from directory where your code is. The JAVA_HOME/bin should be in your path.
  3. If #2 succeeded you should be able to see Helloworld.class at your working directory. Now run it by typing java Helloworld

Search for any java tutorial for beginners for details. good luck.

简短回答: 页: 1

Hadoop在一般意义上管理 j。 它管理着“减少就业”计划,这项工作可以在 j中写成,但不必做。 也许,你们应该首先阅读一些百分光文件。 http://hadoop.apache.org/mapreduce/docs/ 当前/mapred_tutorial.html” rel=“nofollow”>Map Reduce tutorial 。 您也不妨看一看《Hadoop:确定指南》一书。

Hadoop是一个以批量为导向的大型数据处理系统。 这实际上只适合这一问题空间的应用。 如果这些问题不解决,那么Hadoop就是你重新寻找的问题。

你们需要研究地图如何减少工程。 你们可能想看一看一 examples的实例,以了解如何编写《地图减少方案》。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签