Closed dongpf closed 11 years ago
Thanks dong, let me take a look to this.
My dev environment is windows7 + cygwin + eclipse. Do I have to configure solr?
Thanks!
You don't need to have solr to actually pass the test... I guess the issue could be related to cygwin, but let me confirm.
Dong, if you comment out this line of the test (last one):
// trash(OUTPUT);
Do you see the folder : "out-com.datasalt.pangool.solr.TestSolrOutputFormat" in core/ ? What is it inside this folder?
Otherwise, can you paste the full log of the test?
Pere, The index data folder:
The out-com.datasalt.pangool.solr.TestSolrOutputFormat folder:
And the full log of the test is:
13/01/22 17:49:42 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker, sessionId=
13/01/22 17:49:42 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
13/01/22 17:49:42 WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf(Class) or JobConf#setJar(String).
13/01/22 17:49:42 INFO jvm.JvmMetrics: Cannot initialize JVM Metrics with processName=JobTracker, sessionId= - already initialized
13/01/22 17:49:42 INFO input.FileInputFormat: Total input paths to process : 1
13/01/22 17:49:43 INFO mapred.JobClient: Running job: job_local_0001
13/01/22 17:49:43 INFO jvm.JvmMetrics: Cannot initialize JVM Metrics with processName=JobTracker, sessionId= - already initialized
13/01/22 17:49:43 INFO input.FileInputFormat: Total input paths to process : 1
13/01/22 17:49:43 INFO mapred.MapTask: io.sort.mb = 100
13/01/22 17:49:43 INFO mapred.MapTask: data buffer = 79691776/99614720
13/01/22 17:49:43 INFO mapred.MapTask: record buffer = 262144/327680
13/01/22 17:49:43 INFO input.DelegatingMapper: [profile] Got input split. Going to look at DC.
13/01/22 17:49:43 INFO input.DelegatingMapper: [profile] Finished. Calling run() on delegate.
13/01/22 17:49:43 INFO jvm.JvmMetrics: Cannot initialize JVM Metrics with processName=JobTracker, sessionId= - already initialized
13/01/22 17:49:43 WARN solr.SolrRecordWriter: logger class:org.apache.commons.logging.impl.Log4JLogger
13/01/22 17:49:43 WARN solr.SolrRecordWriter: logger class:org.apache.commons.logging.impl.Log4JLogger
13/01/22 17:49:43 WARN solr.SolrRecordWriter: logger class:org.apache.commons.logging.impl.Log4JLogger
13/01/22 17:49:43 INFO solr.HeartBeater: Heart beat reporting class is org.apache.hadoop.mapreduce.TaskAttemptContext
13/01/22 17:49:43 INFO solr.HeartBeater: HeartBeat thread running
13/01/22 17:49:43 INFO solr.HeartBeater: Issuing heart beat for 1 threads
13/01/22 17:49:43 INFO solr.SolrRecordWriter: SolrHome: /D:/workspace/pangool/core/src/test/resources/solr-es
13/01/22 17:49:43 INFO solr.SolrRecordWriter: Constructed instance information solr.home D:/workspace/pangool/core/src/test/resources/solr-es (/D:/workspace/pangool/core/src/test/resources/solr-es), instance dir D:/workspace/pangool/core/src/test/resources/solr-es\, conf dir D:/workspace/pangool/core/src/test/resources/solr-es\conf/, writing index to temporary directory \tmp\hadoop-feiqiong.dpf\mapred\local\solr_attempt_local_0001_m_000000_0.1\data, with permdir file:/D:/workspace/pangool/core/out-com.datasalt.pangool.solr.TestSolrOutputFormat/_temporary/_attempt_local_0001_m_000000_0/ES/part-00000
13/01/22 17:49:43 WARN core.SolrConfig:
Thanks!
Hello,
I have committed something which may fix this issue... it has to do with relative / absolute file paths. Can you git pull and try now?
I pull the patch and rerun the testcase, it passes.
Thanks!
Hi, @pereferrera solr data index files were output in /src/test/resources/solr-es/tmp/hadoop-$user/mapred/local/solr_attempt_local_0001_m_000000_0.1/ folder, not in expected out-com.datasalt.pangool.solr.TestSolrOutputFormat/part-00000. This issue caused all assertTrue(new File(OUTPUT + "/part-00000/data/index").exists()); asserts fail.