hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon" <edwardy...@apache.org>
Subject Re: how to run Eclipse project in Pseudo Distributed Mode?
Date Mon, 13 Jan 2014 04:18:56 GMT
As I mentioned above, you can set the configurations as below:

HamaConfiguration conf = new HamaConfiguration(new
Path("home/edward/hama-site.xml");
BSPJob yourJob = new BSPJob(conf);

Then, you can submit your job (by executing a program in eclipse) to
your "Pseudo Distributed Mode" local cluster.


On Mon, Jan 13, 2014 at 11:48 AM, song bai <baisongxx@gmail.com> wrote:
> Under your guidance ,I have read
> http://wiki.apache.org/hama/GettingStarted#Setting_up_Hama and
> http://wiki.apache.org/hama/HowToContribute
> <http://wiki.apache.org/hama/HowToContribute>
>  .
>
> but i also have some questions,as follows
> (1) where should I add the "HamaConfiguration conf = new
> HamaConfiguration(Path of hama-site.xml) " ?
>     I currently have an idea,I can modify the static addHamaResource()
> method  in org.apache.hama.HamaConfiguration class.
>     private static void addHamaResources() {
>         Configuration.addDefaultResource("hama-default.xml");
>         Configuration.addDefaultResource("hama-site.xml");
>     }
>    my configuration
> is: Configuration.addDefaultResource("hama-trunk/conf/hama-site.xml");
>    but i don't try it ,because I want to run hama on the hdfs , I also have
> a question(2) about how to configure hadoop.
> (2) how to configure hadoop-1.2.0 and start hdfs service?
> after i do "mvn install -Phadoop1 -Dhadoop.version=1.2.0" ,i can
> download hadoop-core-1.2.0.jar
> in /user/.m2/repository/org/apache/hadoop/hadoop-core/1.2.0 folder,but i
> dont find start-all.sh or start-bsp.sh scripts.
> do i have to download the Complete hadoop-1.2.0 and install them by myself?
>
> Note:I used to download the hadoop and hama source code ,and added them
> into an eclipse project.after modifying
> core-site.xml,hdfs-site.xml,mapred-site-xml and hama-site.xml ,I can
> run NameNode,DataNode,BSPMasterRunner,GroomServerRunnner and
> ZookeeperRunner Progresses as Pseudo Distributed Mode  in my eclipse
> project.so I can debug and modify the source code easily.
>
> now I want to participate in the hama project,after I read
> http://wiki.apache.org/hama/HowToContribute ,I also don't kown how to run
> hama in Eclipse?
> Do anyone tell me in detail?
>
>
>
>
>
>
>
>
>
> On Mon, Jan 13, 2014 at 8:17 AM, Edward J. Yoon <edwardyoon@apache.org>wrote:
>
>> There are two ways to configure the Hama properties.
>>
>> HamaConfiguration conf = new HamaConfiguration(Path of hama-site.xml);
>>
>> or,
>>
>> conf.set("bsp.master.address", "host1.mydomain.com:40000");
>>
>> See also, http://wiki.apache.org/hama/GettingStarted#Setting_up_Hama
>>
>>
>> On Sun, Jan 12, 2014 at 10:47 PM, song bai <baisongxx@gmail.com> wrote:
>> > After I finish making the Eclipse project,there are five projects in the
>> > eclipse,there are
>> hama-commons,hama-core,hama-examples,hama-graph,hama-ml.
>> > but i don't find conf file in them.
>> > so what i should do to run the eclipse project in pseudo distributed
>> mode?
>> >
>> > Thanks.
>>
>>
>>
>> --
>> Best Regards, Edward J. Yoon
>> @eddieyoon
>>



-- 
Best Regards, Edward J. Yoon
@eddieyoon

Mime
View raw message