Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed when mvn clean install #20

Closed
marblejenka opened this issue Apr 28, 2011 · 2 comments
Closed

Build failed when mvn clean install #20

marblejenka opened this issue Apr 28, 2011 · 2 comments
Assignees
Milestone

Comments

@marblejenka
Copy link
Member

How to reproduce the issue

Build failed when mvn clean install.

What is expected result and actual result

 [java] usage: java -classpath ... com.asakusafw.compiler.bootstrap.AllBatchCompilerDriver [-compilerwork</path/to/temporary>] -hadoopwork <batch/working> [-link <classlib.jar;/path/to/classes>] -output</path/to/output> -package <pkg.name> [-plugin <plugin-1.jar;plugin-2.jar>] -scanpath </path/to/classlib> [-skiperror]
 [java]  -compilerwork </path/to/temporary>      コンパイラのワーキングディレクトリ
 [java]  -hadoopwork <batch/working>             Hadoop上でのワーキングディレクトリ (ホームディレクトリからの相対パス)
 [java]  -link <classlib.jar;/path/to/classes>   リンクするクラスライブラリの一覧
 [java]  -output </path/to/output>               コンパイル結果を出力する先のディレクトリ
 [java]  -package <pkg.name>                     コンパイル結果のベースパッケージ
 [java]  -plugin <plugin-1.jar;plugin-2.jar>     利用するコンパイラプラグインの一覧
 [java]  -scanpath </path/to/classlib>           コンパイル対象のバッチを含むクラスライブラリ
 [java]  -skiperror                              コンパイルエラーが発生しても続けて次のバッチをコンパイルする
 [java] java.lang.IllegalArgumentException: outputDirectory must not be null
 [java]     at com.asakusafw.compiler.common.Precondition.checkMustNotBeNull(Precondition.java:33)
 [java]     at com.asakusafw.compiler.flow.epilogue.parallel.ParallelSortClientEmitter.emit(ParallelSortClientEmitter.java:95)
 [java]     at com.asakusafw.compiler.flow.external.FileIoProcessor.emitEpilogue(FileIoProcessor.java:93)
 [java]     at com.asakusafw.compiler.flow.jobflow.JobflowCompiler.emit(JobflowCompiler.java:142)
 [java]     at com.asakusafw.compiler.flow.jobflow.JobflowCompiler.compile(JobflowCompiler.java:95)
 [java]     at com.asakusafw.compiler.flow.FlowCompiler.compileJobflow(FlowCompiler.java:203)
 [java]     at com.asakusafw.compiler.flow.FlowCompiler.compile(FlowCompiler.java:78)
 [java]     at com.asakusafw.compiler.batch.processor.JobFlowWorkDescriptionProcessor.build(JobFlowWorkDescriptionProcessor.java:67)
 [java]     at com.asakusafw.compiler.batch.processor.JobFlowWorkDescriptionProcessor.process(JobFlowWorkDescriptionProcessor.java:55)
 [java]     at com.asakusafw.compiler.batch.processor.JobFlowWorkDescriptionProcessor.process(JobFlowWorkDescriptionProcessor.java:39)
 [java]     at com.asakusafw.compiler.batch.BatchCompiler.processUnit(BatchCompiler.java:104)
 [java]     at com.asakusafw.compiler.batch.BatchCompiler.processUnits(BatchCompiler.java:93)
 [java]     at com.asakusafw.compiler.batch.BatchCompiler.compile(BatchCompiler.java:59)
 [java]     at com.asakusafw.compiler.testing.DirectBatchCompiler.compile(DirectBatchCompiler.java:105)
 [java]     at com.asakusafw.compiler.bootstrap.BatchCompilerDriver.compile(BatchCompilerDriver.java:214)
 [java]     at com.asakusafw.compiler.bootstrap.AllBatchCompilerDriver.start(AllBatchCompilerDriver.java:179)
 [java]     at com.asakusafw.compiler.bootstrap.AllBatchCompilerDriver.main(AllBatchCompilerDriver.java:110)

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.677s
[INFO] Finished at: Thu Apr 28 14:03:36 JST 2011
[INFO] Final Memory: 9M/106M
[INFO] ------------------------------------------------------------------------

How to fix the issue

It seems asakusa.batchc.dir is null, but the property is configures.

@ghost ghost assigned akirakw and ashigeru Apr 28, 2011
@marblejenka
Copy link
Member Author

It is a missuse of FileExporterDescription. FileExporterDescription#getPathPrefix must supecify relative directory.

Following code cannot pass batch:compile.

public abstract class DefaultHdfsExporterDescription extends
        FileExporterDescription {
    @Override
    public String getPathPrefix() {
        return getModelType().getSimpleName() + "-*";
    }
}

Following is ok.

public abstract class DefaultHdfsExporterDescription extends
        FileExporterDescription {
    @Override
    public String getPathPrefix() {
        return "result/" + getModelType().getSimpleName() + "-*";
    }
}

please write the specification.

ashigeru added a commit to ashigeru/asakusafw that referenced this issue May 15, 2011
…eExporterDescription, and added verification of them.
@ashigeru ashigeru reopened this May 15, 2011
@ashigeru
Copy link
Member

355627f Merged into central/master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants