This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb76ec4
commit f575221
Showing
73 changed files
with
4,259 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,12 @@ | |
*.jar | ||
*.war | ||
*.ear | ||
.classpath | ||
.project | ||
.gradle | ||
.settings | ||
bin | ||
build | ||
target | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
*.class | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
.classpath | ||
.project | ||
.gradle | ||
.settings | ||
bin | ||
build | ||
target | ||
.springBeans | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beansProjectDescription> | ||
<version>1</version> | ||
<pluginVersion><![CDATA[2.9.1.201203220057-RELEASE]]></pluginVersion> | ||
<configSuffixes> | ||
<configSuffix><![CDATA[xml]]></configSuffix> | ||
</configSuffixes> | ||
<enableImports><![CDATA[false]]></enableImports> | ||
<configs> | ||
<config>src/main/resources/rest-context.xml</config> | ||
</configs> | ||
<configSets> | ||
</configSets> | ||
</beansProjectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
Make sure Spring Hadoop Admin is running: | ||
open new terminal window, and change to "spring-hadoop-admin" root directory. | ||
$ ./gradlew jettyRun | ||
|
||
|
||
|
||
1. build: | ||
$ mvn clean package | ||
|
||
2. run | ||
$ java -jar target/admin-cli-1.0.0.BUILD-SNAPSHOT.jar | ||
|
||
3. set Spring Hadoop Admin service URl: | ||
springHadoopAdmin>target http://localhost:8081/spring-hadoop-admin | ||
|
||
4. list jobs: | ||
springHadoopAdmin>jobs-all | ||
|
||
5. run jobs: | ||
springHadoopAdmin>job-execute --jobName {jobName} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
description = 'Spring Hadoop Admin CLI' | ||
|
||
apply plugin: 'base' | ||
apply plugin: 'java' | ||
|
||
apply plugin: 'eclipse' | ||
apply plugin: 'idea' | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
// Public Spring artefacts | ||
maven{ | ||
url "http://repo.springsource.org/release" | ||
url "http://repo.springsource.org/milestone" | ||
url "http://repo.springsource.org/snapshot" | ||
url "http://oss.sonatype.org/content/repositories/snapshots" | ||
url "http://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext/" | ||
url "http://www.datanucleus.org/downloads/maven2/" | ||
url "http://conjars.org/repo" | ||
} | ||
} | ||
|
||
dependencies { | ||
compile "org.springframework.shell:spring-shell:$springShellVersion" | ||
|
||
testCompile "junit:junit:$junitVersion" | ||
|
||
} | ||
|
||
|
||
defaultTasks 'clean', 'build' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
springShellVersion = 1.0.0.BUILD-SNAPSHOT | ||
|
||
junitVersion = 4.8.1 | ||
|
||
version = 1.0.0.BUILD-SNAPSHOT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.springframework.data.hadoop</groupId> | ||
<artifactId>admin-cli</artifactId> | ||
<version>1.0.0.BUILD-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>spring-hadoop-admin-cli</name> | ||
<url>http://maven.apache.org</url> | ||
|
||
<properties> | ||
<spring.shell.version>1.0.0.BUILD-SNAPSHOT</spring.shell.version> | ||
<jar.mainclass>org.springframework.shell.Bootstrap</jar.mainclass> | ||
</properties> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>org.springframework.shell</groupId> | ||
<artifactId>spring-shell</artifactId> | ||
<version>${spring.shell.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-configuration</groupId> | ||
<artifactId>commons-configuration</artifactId> | ||
<version>1.8</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework</groupId> | ||
<artifactId>spring-web</artifactId> | ||
<version>3.1.1.RELEASE</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.jackson</groupId> | ||
<artifactId>jackson-core-asl</artifactId> | ||
<version>1.9.6</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.jackson</groupId> | ||
<artifactId>jackson-mapper-asl</artifactId> | ||
<version>1.9.6</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.batch</groupId> | ||
<artifactId>spring-batch-admin-manager</artifactId> | ||
<version>1.2.1.RELEASE</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.batch</groupId> | ||
<artifactId>spring-batch-admin-resources</artifactId> | ||
<version>1.2.1.RELEASE</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>1.5</source> | ||
<target>1.5</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>copy-dependencies</id> | ||
<phase>prepare-package</phase> | ||
<goals> | ||
<goal>copy-dependencies</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${project.build.directory}/lib</outputDirectory> | ||
<overWriteReleases>true</overWriteReleases> | ||
<overWriteSnapshots>true</overWriteSnapshots> | ||
<overWriteIfNewer>true</overWriteIfNewer> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<addClasspath>true</addClasspath> | ||
<useUniqueVersions>false</useUniqueVersions> | ||
<classpathPrefix>lib/</classpathPrefix> | ||
<mainClass>${jar.mainclass}</mainClass> | ||
</manifest> | ||
<manifestEntries> | ||
<version>${project.version}</version> | ||
</manifestEntries> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
|
||
</build> | ||
|
||
|
||
<repositories> | ||
<!-- jline 1.0.S2-B is here http://shrub.appspot.com/spring-roo-repository.springsource.org/release/net/sourceforge/jline/jline/1.0.S2-B/ --> | ||
<repository> | ||
<id>spring-roo-repository</id> | ||
<name>Spring Roo Maven Repository</name> | ||
<url>http://spring-roo-repository.springsource.org/release</url> | ||
</repository> | ||
|
||
<repository> | ||
<id>spring-maven-snapshot</id> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
<!-- <updatePolicy>always</updatePolicy> --> | ||
</snapshots> | ||
<name>Springframework Maven SNAPSHOT Repository</name> | ||
<url>http://maven.springframework.org/snapshot</url> | ||
</repository> | ||
|
||
<repository> | ||
<id>spring-maven-milestone</id> | ||
<name>Springframework Maven Milestone Repository</name> | ||
<url>http://maven.springframework.org/milestone</url> | ||
</repository> | ||
</repositories> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 13:02:16 | ||
help | ||
// [failed] executions-all | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 13:04:01 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 13:04:27 | ||
target --url http://localhost:8081/spring-hadoop-admin/ | ||
info | ||
executions-all | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 13:06:20 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 13:06:33 | ||
jobs-all | ||
jobs-name --jobName wordcount-withscript-job | ||
job-execute --jobName wordcount-withscript-job | ||
job-execute --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 13:15:46 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 13:15:54 | ||
job-execute --jobName wordcount-withscript-job | ||
help | ||
executions-all | ||
jobs-all | ||
executions-name --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 13:26:41 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 13:26:49 | ||
help | ||
executions-all | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 13:28:38 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 13:28:48 | ||
jobs-all | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 13:45:33 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 13:45:41 | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 13:59:29 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 13:59:37 | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 15:05:20 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 15:06:36 | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 15:07:58 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 15:12:33 | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 15:12:55 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 15:13:39 | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 15:13:50 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 15:15:14 | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 15:44:48 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-08 15:53:26 | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-08 17:02:59 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-09 11:27:30 | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-09 11:40:49 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-09 11:40:59 | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-09 11:42:43 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-09 11:43:44 | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-09 11:47:20 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-09 11:47:28 | ||
help | ||
jobs-all | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
// [failed] launch-job --jobName wordcount-withscript-job | ||
info | ||
target --url http://localhost:8080/spring-hadoop-admin | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-09 12:16:43 | ||
// Spring Roo UNKNOWN VERSION log opened at 2012-05-09 12:16:52 | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
launch-job --jobName wordcount-withscript-job | ||
quit | ||
// Spring Roo UNKNOWN VERSION log closed at 2012-05-09 13:03:31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
targetUrl = http://localhost:8080/spring-hadoop-admin |
Oops, something went wrong.