--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/9de98fed-4020-4f80-b717-1d4802cc5cda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/86133d89-2e95-42c3-8726-fe5b9c4c46b1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CAO7ueZK7ZgtAgMimQz3HR5tVs_%2BXZhdAXY5wkpBt13xmisr8zQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CAJRvvD8XXgqGzL4vUmgBYTLaedS8v1HaOAJSC45HhJBnn14yrg%40mail.gmail.com.
Just checked gremlin thinks hdfs is local file system[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ hadoop fs -ls /Found 1 itemsdrwxrwxrwt - hdfs hadoop 0 2015-04-28 06:18 /tmp[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ bin/gremlin.sh\,,,/(o o)-----oOOo-(_)-oOOo-----gremlin> hdfs==>org.apache.hadoop.fs.LocalFileSystem@7c25984bOn Tue, Apr 28, 2015 at 6:36 AM, Apoorva Gaurav <apoorva...@myntra.com> wrote:Thanks Daniel.I set up a single node hdfs cluster where namenode and datanode are running on different machines and installed hadoop-client on the box where gremlin is running. The local user has access to the hdfs and can read and write but titan hadoop job runs locally.=================================================================[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ hadoop fs -ls /Found 1 itemsdrwxrwxrwt - hdfs hadoop 0 2015-04-27 19:40 /tmp[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ echo "hello world" > /tmp/hw.txt[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ hadoop fs -copyFromLocal /tmp/hw.txt /tmp/hw_hdfs.txt[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ hadoop fs -ls /Found 1 itemsdrwxrwxrwt - hdfs hadoop 0 2015-04-28 06:18 /tmp[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ hadoop fs -ls /tmp/Found 1 items-rw-r--r-- 3 sanjay.yadav hadoop 12 2015-04-28 06:18 /tmp/hw_hdfs.txt[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ hadoop fs -copyToLocal /tmp/hw_hdfs.txt /tmp/hw_local.txt15/04/28 06:18:56 WARN hdfs.DFSClient: DFSInputStream has been closed already[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ cat /tmp/hwhw_local.txt hw.txt[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ cat /tmp/hw_local.txthello world=================================================================[sanjay.yadav@nmc-lp5 titan-0.5.4-hadoop2]$ bin/gremlin.sh\,,,/(o o)-----oOOo-(_)-oOOo-----06:25:06 WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicablegremlin> g = HadoopFactory.open("conf/hadoop/lgpgels.hadoop.properties")==>titangraph[hadoop:titancassandrainputformat->graphsonoutputformat]gremlin> g.V.has("entity_type","USER").groupCount('{it.entity_id.substring(it.entity_id.indexOf("@"))}')06:25:12 INFO com.thinkaurelius.titan.hadoop.compat.h2.Hadoop2Compiler - Added mapper VerticesMap.Map via ChainMapper with output (class org.apache.hadoop.io.NullWritable,class com.thinkaurelius.titan.hadoop.FaunusVertex); current state is MAPPER06:25:12 INFO com.thinkaurelius.titan.hadoop.compat.h2.Hadoop2Compiler - Added mapper VerticesMap.Map > PropertyFilterMap.Map via ChainMapper with output (class org.apache.hadoop.io.NullWritable,class com.thinkaurelius.titan.hadoop.FaunusVertex); current state is MAPPER06:25:12 INFO com.thinkaurelius.titan.hadoop.compat.h2.Hadoop2Compiler - Configuring 1 MapReduce job(s)...06:25:12 INFO com.thinkaurelius.titan.hadoop.compat.h2.Hadoop2Compiler - Configuring [Job 1/1: VerticesMap.Map > PropertyFilterMap.Map > GroupCountMapReduce.Map > GroupCountMapReduce.Reduce]06:25:13 INFO com.thinkaurelius.titan.hadoop.compat.h2.Hadoop2Compiler - Configured 1 MapReduce job(s)06:25:13 INFO com.thinkaurelius.titan.hadoop.compat.h2.Hadoop2Compiler - Preparing to execute 1 MapReduce job(s)...06:25:13 INFO com.thinkaurelius.titan.hadoop.compat.h2.Hadoop2Compiler - Executing [Job 1/1: VerticesMap.Map > PropertyFilterMap.Map > GroupCountMapReduce.Map > GroupCountMapReduce.Reduce]06:25:13 WARN org.apache.hadoop.mapreduce.JobSubmitter - Hadoop command-line option parsing not performed. Implement the Tool interface and execute your application with ToolRunner to remedy this.06:25:16 INFO org.apache.hadoop.mapreduce.JobSubmitter - number of splits:102506:25:16 INFO org.apache.hadoop.mapreduce.JobSubmitter - Submitting tokens for job: job_local938677550_000106:25:16 WARN org.apache.hadoop.conf.Configuration - file:/tmp/hadoop-sanjay.yadav/mapred/staging/sanjay.yadav938677550/.staging/job_local938677550_0001/job.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval; Ignoring.06:25:16 WARN org.apache.hadoop.conf.Configuration - file:/tmp/hadoop-sanjay.yadav/mapred/staging/sanjay.yadav938677550/.staging/job_local938677550_0001/job.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts; Ignoring.06:25:30 WARN org.apache.hadoop.conf.Configuration - file:/tmp/hadoop-sanjay.yadav/mapred/local/localRunner/sanjay.yadav/job_local938677550_0001/job_local938677550_0001.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.retry.interval; Ignoring.06:25:30 WARN org.apache.hadoop.conf.Configuration - file:/tmp/hadoop-sanjay.yadav/mapred/local/localRunner/sanjay.yadav/job_local938677550_0001/job_local938677550_0001.xml:an attempt to override final parameter: mapreduce.job.end-notification.max.attempts; Ignoring.06:25:30 INFO org.apache.hadoop.mapreduce.Job - The url to track the job: http://localhost:8080/06:25:30 INFO org.apache.hadoop.mapreduce.Job - Running job: job_local938677550_000106:25:30 INFO org.apache.hadoop.mapred.LocalJobRunner - OutputCommitter set in config null06:25:30 INFO org.apache.hadoop.mapred.LocalJobRunner - OutputCommitter is org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter06:25:31 INFO org.apache.hadoop.mapred.LocalJobRunner - Starting task: attempt_local938677550_0001_m_000000_006:25:31 INFO org.apache.hadoop.mapred.LocalJobRunner - Waiting for map tasks06:25:31 INFO org.apache.hadoop.mapred.Task - Using ResourceCalculatorProcessTree : [ ]06:25:31 INFO org.apache.hadoop.mapred.MapTask - Processing split: ColumnFamilySplit((-3539230589804882585, '-3398543054510187228] @[192.168.69.64, 192.168.69.66, 192.168.69.65])06:25:31 INFO org.apache.hadoop.mapred.MapTask - Map output collector class = org.apache.hadoop.mapred.MapTask$MapOutputBuffer06:25:31 INFO org.apache.hadoop.mapred.MapTask - (EQUATOR) 0 kvi 26214396(104857584)06:25:31 INFO org.apache.hadoop.mapred.MapTask - mapreduce.task.io.sort.mb: 10006:25:31 INFO org.apache.hadoop.mapred.MapTask - soft limit at 8388608006:25:31 INFO org.apache.hadoop.mapred.MapTask - bufstart = 0; bufvoid = 10485760006:25:31 INFO org.apache.hadoop.mapred.MapTask - kvstart = 26214396; length = 655360006:25:31 INFO org.apache.hadoop.mapreduce.Job - Job job_local938677550_0001 running in uber mode : false06:25:31 INFO org.apache.hadoop.mapreduce.Job - map 0% reduce 0%06:25:37 INFO org.apache.hadoop.mapred.LocalJobRunner - map > map=================================================================Property file is similar to default=================================================================titan.hadoop.input.format=com.thinkaurelius.titan.hadoop.formats.cassandra.TitanCassandraInputFormattitan.hadoop.input.conf.storage.backend=cassandrathrifttitan.hadoop.input.conf.storage.hostname=lp1,lp3titan.hadoop.input.conf.storage.port=9160titan.hadoop.input.conf.storage.cassandra.keyspace=lgpgelsgraphcassandra.input.partitioner.class=org.apache.cassandra.dht.Murmur3Partitionermapred.max.split.size=5242880mapred.job.reuse.jvm.num.tasks=-1titan.hadoop.sideeffect.format=org.apache.hadoop.mapreduce.lib.output.TextOutputFormattitan.hadoop.output.format=com.thinkaurelius.titan.hadoop.formats.graphson.GraphSONOutputFormat
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CAO7ueZKYdW5u8-JgSOXt4pDBwsRtmFE9PJxnmwYzGQ2byExsrA%40mail.gmail.com.
--Thanks & Regards,
Apoorva
--Thanks & Regards,
Apoorva
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CAO7ueZKYdW5u8-JgSOXt4pDBwsRtmFE9PJxnmwYzGQ2byExsrA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CAJRvvD8vzdTOoTnm3B3A8t9gr%3DHX%2BOs5SsAFpLkMzK4PCRNKkw%40mail.gmail.com.