Skip to content

Commit 525de1d

Browse files
author
Daniel Rammer
committed
flushed out framework for implementing datanode and namenode.
1 parent 50f6aec commit 525de1d

File tree

11 files changed

+127
-12
lines changed

11 files changed

+127
-12
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
build
1+
**/build
22
.gradle

build.gradle

-11
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,3 @@ buildscript {
2626
protobuf.protoc {
2727
artifact = 'com.google.protobuf:protoc:3.4.0'
2828
}
29-
30-
/*sourceSets {
31-
main {
32-
proto {
33-
srcDirs 'src/main/proto/client', 'src/main/proto/common', 'src/main/proto/hdfs'
34-
}
35-
java {
36-
srcDir 'src/main/java'
37-
}
38-
}
39-
}*/

client/build.gradle

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply plugin: 'application'
2+
apply plugin: 'java'
3+
apply plugin: 'com.google.protobuf'
4+
5+
mainClassName = 'com.bushpath.phoenix.client.Main'
6+
7+
// define repositories
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
// define dependencies
13+
dependencies {
14+
compile 'com.google.protobuf:protobuf-java:3.4.0'
15+
}
16+
17+
// build script
18+
buildscript {
19+
repositories {
20+
mavenCentral()
21+
}
22+
23+
dependencies {
24+
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
25+
}
26+
}
27+
28+
// protobuf protoc
29+
protobuf.protoc {
30+
artifact = 'com.google.protobuf:protoc:3.4.0'
31+
}

client/settings.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rootProject.name = 'phoenix-client'
2+
3+
include ':phoenix'
4+
project(':phoenix').projectDir = new File(settingsDir, '../')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.bushpath.phoenix.client;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
System.out.println("Hello Client");
6+
}
7+
}

datanode/build.gradle

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply plugin: 'application'
2+
apply plugin: 'java'
3+
apply plugin: 'com.google.protobuf'
4+
5+
mainClassName = 'com.bushpath.phoenix.datanode.Main'
6+
7+
// define repositories
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
// define dependencies
13+
dependencies {
14+
compile 'com.google.protobuf:protobuf-java:3.4.0'
15+
}
16+
17+
// build script
18+
buildscript {
19+
repositories {
20+
mavenCentral()
21+
}
22+
23+
dependencies {
24+
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
25+
}
26+
}
27+
28+
// protobuf protoc
29+
protobuf.protoc {
30+
artifact = 'com.google.protobuf:protoc:3.4.0'
31+
}

datanode/settings.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rootProject.name = 'phoenix-datanode'
2+
3+
include ':phoenix'
4+
project(':phoenix').projectDir = new File(settingsDir, '../')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.bushpath.phoenix.datanode;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
System.out.println("Hello DataNode!");
6+
}
7+
}

namenode/build.gradle

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply plugin: 'application'
2+
apply plugin: 'java'
3+
apply plugin: 'com.google.protobuf'
4+
5+
mainClassName = 'com.bushpath.phoenix.namenode.Main'
6+
7+
// define repositories
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
// define dependencies
13+
dependencies {
14+
compile 'com.google.protobuf:protobuf-java:3.4.0'
15+
}
16+
17+
// build script
18+
buildscript {
19+
repositories {
20+
mavenCentral()
21+
}
22+
23+
dependencies {
24+
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
25+
}
26+
}
27+
28+
// protobuf protoc
29+
protobuf.protoc {
30+
artifact = 'com.google.protobuf:protoc:3.4.0'
31+
}

namenode/settings.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rootProject.name = 'phoenix-namenode'
2+
3+
include ':phoenix'
4+
project(':phoenix').projectDir = new File(settingsDir, '../')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.bushpath.phoenix.namenode;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
System.out.println("Hello NameNode");
6+
}
7+
}

0 commit comments

Comments
 (0)