Skip to content

Instantly share code, notes, and snippets.

@royseto
Created February 4, 2013 06:23
Show Gist options
  • Save royseto/4705282 to your computer and use it in GitHub Desktop.
Save royseto/4705282 to your computer and use it in GitHub Desktop.
Build logs for my fork of https://github.com/Cascading/CoPA
The following is what I got after merging the latest commit (fa9ee2025870119260770453cd11deae2baa0a12) from https://github.com/Cascading/CoPA this evening (2013-02-03). On my system at least, the Gradle build doesn't find the correct dependencies with Cascading 2.1.x, but it builds with Cascading 2.0.x.
roy-setos-macbook:~ royseto$ java -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
roy-setos-macbook:~ royseto$ brew ls --versions | grep hadoop
hadoop 1.1.1 hdfs
roy-setos-macbook:~ royseto$ gradle -version
------------------------------------------------------------
Gradle 1.4
------------------------------------------------------------
Gradle build time: Monday, January 28, 2013 3:42:46 AM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy: 2.2.0
JVM: 1.7.0_11 (Oracle Corporation 23.6-b04)
OS: Mac OS X 10.8.2 x86_64
roy-setos-macbook:~ royseto$ cd code/CoPA
roy-setos-macbook:CoPA royseto$ cat build.gradle
/*
* Copyright (c) 2007-2012 Concurrent, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
archivesBaseName = 'copa'
repositories {
mavenLocal()
mavenCentral()
mavenRepo name: 'conjars', url: 'http://conjars.org/repo/'
}
ext.cascadingVersion = '2.1.3+'
dependencies {
compile( group: 'cascading', name: 'cascading-core', version: cascadingVersion )
compile( group: 'cascading', name: 'cascading-hadoop', version: cascadingVersion )
}
jar {
description = "Assembles a Hadoop ready jar file"
doFirst {
into( 'lib' ) {
from configurations.compile
}
}
manifest {
attributes( "Main-Class": "copa/Main" )
}
}
roy-setos-macbook:CoPA royseto$ gradle clean jar
:clean
:compileJava
/Users/royseto/code/CoPA/src/main/java/copa/Main.java:60: error: cannot access JobConf
Tap gisTap = new Hfs( new TextLine( new Fields( "line" ) ), gisPath );
^
class file for org.apache.hadoop.mapred.JobConf not found
1 error
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.141 secs
roy-setos-macbook:CoPA royseto$ #edited build.gradle to change ext.cascadingVersion to '2.0.8+'
roy-setos-macbook:CoPA royseto$ cat build.gradle
/*
* Copyright (c) 2007-2012 Concurrent, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
archivesBaseName = 'copa'
repositories {
mavenLocal()
mavenCentral()
mavenRepo name: 'conjars', url: 'http://conjars.org/repo/'
}
ext.cascadingVersion = '2.0.8+'
dependencies {
compile( group: 'cascading', name: 'cascading-core', version: cascadingVersion )
compile( group: 'cascading', name: 'cascading-hadoop', version: cascadingVersion )
}
jar {
description = "Assembles a Hadoop ready jar file"
doFirst {
into( 'lib' ) {
from configurations.compile
}
}
manifest {
attributes( "Main-Class": "copa/Main" )
}
}
roy-setos-macbook:CoPA royseto$ gradle clean jar
:clean
:compileJava
:processResources UP-TO-DATE
:classes
:jar
BUILD SUCCESSFUL
Total time: 9.319 secs
roy-setos-macbook:CoPA royseto$ #edited build.gradle to change ext.cascadingVersion to '2.1.0+'
roy-setos-macbook:CoPA royseto$ cat build.gradle
/*
* Copyright (c) 2007-2012 Concurrent, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
archivesBaseName = 'copa'
repositories {
mavenLocal()
mavenCentral()
mavenRepo name: 'conjars', url: 'http://conjars.org/repo/'
}
ext.cascadingVersion = '2.1.0+'
dependencies {
compile( group: 'cascading', name: 'cascading-core', version: cascadingVersion )
compile( group: 'cascading', name: 'cascading-hadoop', version: cascadingVersion )
}
jar {
description = "Assembles a Hadoop ready jar file"
doFirst {
into( 'lib' ) {
from configurations.compile
}
}
manifest {
attributes( "Main-Class": "copa/Main" )
}
}
roy-setos-macbook:CoPA royseto$ gradle clean jar
:clean
:compileJava
Download http://conjars.org/repo/cascading/cascading-core/2.1.0/cascading-core-2.1.0.pom
Download http://conjars.org/repo/cascading/cascading-hadoop/2.1.0/cascading-hadoop-2.1.0.pom
Download http://conjars.org/repo/cascading/cascading-core/2.1.0/cascading-core-2.1.0.jar
Download http://conjars.org/repo/cascading/cascading-hadoop/2.1.0/cascading-hadoop-2.1.0.jar
/Users/royseto/code/CoPA/src/main/java/copa/Main.java:60: error: cannot access JobConf
Tap gisTap = new Hfs( new TextLine( new Fields( "line" ) ), gisPath );
^
class file for org.apache.hadoop.mapred.JobConf not found
1 error
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 10.479 secs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment