wesleypeck / parquet-tools

Command line tools for the parquet project
Apache License 2.0
42 stars 19 forks source link

Missing hadoop-core dependency #1

Open mping opened 10 years ago

mping commented 10 years ago

The pom is missing a dependency to hadoop-core, it is required because of imported packages org.apache.hadoop.*

    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-core</artifactId>
      <version>1.2.1</version>
    </dependency>
nealsid commented 10 years ago

As an alternative workaround, you can apply the following diff:

diff --git a/pom.xml b/pom.xml
index ea02c8c..72882a8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -60,7 +60,7 @@
     <maven.compiler.source>1.6</maven.compiler.source>
     <maven.compiler.target>1.6</maven.compiler.target>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <parquet.mr.version>[1.2.0,1.3.0)</parquet.mr.version>
+    <parquet.mr.version>1.2.0</parquet.mr.version>
     <parquet.format.version>[1.0.0,1.1.0)</parquet.format.version>
   </properties>

There is a version of parquet-mr in between 1.2.0 and 1.3.0 that breaks the build, but this POM file version spec allows that broken version.

ker2x commented 10 years ago

bump. Had the same problem.

michaellihs commented 8 years ago

@nealsid - thx, your solution made mvn install work for me!