Skip to content

Commit dad5239

Browse files
author
Hadoop user
committed
Fixed pom.xml to allow execution in distributed mode
1 parent ef1720a commit dad5239

File tree

2 files changed

+16
-31
lines changed

2 files changed

+16
-31
lines changed

pom.xml

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -83,35 +83,20 @@
8383
<target>1.8</target>
8484
</configuration>
8585
</plugin>
86-
<plugin>
87-
<groupId>org.apache.maven.plugins</groupId>
88-
<artifactId>maven-jar-plugin</artifactId>
89-
<configuration>
90-
<archive>
91-
<manifest>
92-
<addClasspath>true</addClasspath>
93-
</manifest>
94-
</archive>
95-
</configuration>
96-
</plugin>
97-
<plugin>
98-
<groupId>org.apache.maven.plugins</groupId>
99-
<artifactId>maven-dependency-plugin</artifactId>
100-
<executions>
101-
<execution>
102-
<id>copy-dependencies</id>
103-
<phase>package</phase>
104-
<goals>
105-
<goal>copy-dependencies</goal>
106-
</goals>
107-
<configuration>
108-
<outputDirectory>${project.build.directory}</outputDirectory>
109-
<overWriteReleases>false</overWriteReleases>
110-
<overWriteSnapshots>true</overWriteSnapshots>
111-
</configuration>
112-
</execution>
113-
</executions>
114-
</plugin>
86+
<plugin>
87+
<artifactId>maven-assembly-plugin</artifactId>
88+
<version>2.4</version>
89+
<configuration>
90+
<archive>
91+
<manifest>
92+
<mainClass>ldbc.snb.datagen.generator.LDBCDatagen</mainClass>
93+
</manifest>
94+
</archive>
95+
<descriptorRefs>
96+
<descriptorRef>jar-with-dependencies</descriptorRef>
97+
</descriptorRefs>
98+
</configuration>
99+
</plugin>
115100
</plugins>
116101
</build>
117102
</project>

run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export HADOOP_HOME
1313
export LDBC_SNB_DATAGEN_HOME
1414

1515
mvn clean
16-
mvn -DskipTests package
16+
mvn -DskipTests assembly:assembly
1717

18-
$HADOOP_HOME/bin/hadoop jar $LDBC_SNB_DATAGEN_HOME/target/ldbc_snb_datagen-0.2.5.jar ldbc.snb.datagen.generator.LDBCDatagen $LDBC_SNB_DATAGEN_HOME/params.ini
18+
$HADOOP_HOME/bin/hadoop jar $LDBC_SNB_DATAGEN_HOME/target/ldbc_snb_datagen-0.2.5-jar-with-dependencies.jar $LDBC_SNB_DATAGEN_HOME/params.ini
1919

2020
rm -f m*personFactors*
2121
rm -f .m*personFactors*

0 commit comments

Comments
 (0)