Skip to content

Commit 6a1b36d

Browse files
author
Vitásek Ladislav
committed
initial commit
1 parent 4f93861 commit 6a1b36d

31 files changed

+2140
-1
lines changed

.gitignore

+250-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,261 @@
1+
# Created by https://www.gitignore.io
2+
3+
### OSX ###
4+
.DS_Store
5+
.AppleDouble
6+
.LSOverride
7+
8+
# Icon must end with two \r
9+
Icon
10+
11+
12+
# Thumbnails
13+
._*
14+
15+
# Files that might appear on external disk
16+
.Spotlight-V100
17+
.Trashes
18+
19+
# Directories potentially created on remote AFP share
20+
.AppleDB
21+
.AppleDesktop
22+
Network Trash Folder
23+
Temporary Items
24+
.apdisk
25+
26+
27+
### Windows ###
28+
# Windows image file caches
29+
Thumbs.db
30+
ehthumbs.db
31+
32+
# Folder config file
33+
Desktop.ini
34+
35+
# Recycle Bin used on file shares
36+
$RECYCLE.BIN/
37+
38+
# Windows Installer files
39+
*.cab
40+
*.msi
41+
*.msm
42+
*.msp
43+
44+
# Windows shortcuts
45+
*.lnk
46+
47+
48+
### Linux ###
49+
*~
50+
51+
# KDE directory preferences
52+
.directory
53+
54+
55+
### Java ###
156
*.class
257

358
# Mobile Tools for Java (J2ME)
459
.mtj.tmp/
560

661
# Package Files #
7-
*.jar
62+
#*.jar
863
*.war
964
*.ear
1065

1166
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
1267
hs_err_pid*
68+
69+
70+
### Scala ###
71+
*.class
72+
*.log
73+
74+
# sbt specific
75+
.cache
76+
.history
77+
.lib/
78+
dist/*
79+
target/
80+
lib_managed/
81+
src_managed/
82+
project/boot/
83+
project/plugins/project/
84+
85+
# Scala-IDE specific
86+
.scala_dependencies
87+
.worksheet
88+
89+
90+
### Gradle ###
91+
.gradle
92+
build/
93+
94+
# Ignore Gradle GUI config
95+
gradle-app.setting
96+
97+
98+
### Maven ###
99+
target/
100+
pom.xml.tag
101+
pom.xml.releaseBackup
102+
pom.xml.versionsBackup
103+
pom.xml.next
104+
release.properties
105+
106+
107+
### Intellij ###
108+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
109+
110+
*.iml
111+
112+
## Directory-based project format:
113+
.idea/
114+
# if you remove the above rule, at least ignore the following:
115+
116+
# User-specific stuff:
117+
# .idea/workspace.xml
118+
# .idea/tasks.xml
119+
# .idea/dictionaries
120+
121+
# Sensitive or high-churn files:
122+
# .idea/dataSources.ids
123+
# .idea/dataSources.xml
124+
# .idea/sqlDataSources.xml
125+
# .idea/dynamic.xml
126+
# .idea/uiDesigner.xml
127+
128+
# Gradle:
129+
# .idea/gradle.xml
130+
# .idea/libraries
131+
132+
# Mongo Explorer plugin:
133+
# .idea/mongoSettings.xml
134+
135+
## File-based project format:
136+
*.ipr
137+
*.iws
138+
139+
## Plugin-specific files:
140+
141+
# IntelliJ
142+
out/
143+
144+
# mpeltonen/sbt-idea plugin
145+
.idea_modules/
146+
147+
# JIRA plugin
148+
atlassian-ide-plugin.xml
149+
150+
# Crashlytics plugin (for Android Studio and IntelliJ)
151+
com_crashlytics_export_strings.xml
152+
crashlytics.properties
153+
crashlytics-build.properties
154+
155+
156+
### Eclipse ###
157+
*.pydevproject
158+
.metadata
159+
.gradle
160+
#bin/
161+
tmp/
162+
*.tmp
163+
*.bak
164+
*.swp
165+
*~.nib
166+
local.properties
167+
.settings/
168+
.loadpath
169+
170+
# External tool builders
171+
.externalToolBuilders/
172+
173+
# Locally stored "Eclipse launch configurations"
174+
*.launch
175+
176+
# CDT-specific
177+
.cproject
178+
179+
# PDT-specific
180+
.buildpath
181+
182+
# sbteclipse plugin
183+
.target
184+
185+
# TeXlipse plugin
186+
.texlipse
187+
188+
189+
### NetBeans ###
190+
nbproject/private/
191+
build/
192+
nbbuild/
193+
dist/
194+
nbdist/
195+
nbactions.xml
196+
nb-configuration.xml
197+
198+
199+
### vim ###
200+
[._]*.s[a-w][a-z]
201+
[._]s[a-w][a-z]
202+
*.un~
203+
Session.vim
204+
.netrwhist
205+
*~
206+
207+
208+
### Emacs ###
209+
# -*- mode: gitignore; -*-
210+
*~
211+
\#*\#
212+
/.emacs.desktop
213+
/.emacs.desktop.lock
214+
*.elc
215+
auto-save-list
216+
tramp
217+
.\#*
218+
219+
# Org-mode
220+
.org-id-locations
221+
*_archive
222+
223+
# flymake-mode
224+
*_flymake.*
225+
226+
# eshell files
227+
/eshell/history
228+
/eshell/lastdir
229+
230+
# elpa packages
231+
/elpa/
232+
233+
# reftex files
234+
*.rel
235+
236+
# AUCTeX auto folder
237+
/auto/
238+
239+
# cask packages
240+
.cask/
241+
242+
build-test
243+
244+
### SublimeText ###
245+
# cache files for sublime text
246+
*.tmlanguage.cache
247+
*.tmPreferences.cache
248+
*.stTheme.cache
249+
250+
# workspace files are user-specific
251+
*.sublime-workspace
252+
253+
# project files should be checked into the repository, unless a significant
254+
# proportion of contributors will probably not be using SublimeText
255+
# *.sublime-project
256+
257+
# sftp configuration file
258+
sftp-config.json
259+
260+
classes/
261+
workspace.xml

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Please see this doc https://cml.avast.com/pages/viewpage.action?pageId=39042735
2+
3+
4+
For developing, add to JVM args:
5+
-Developer
6+
-Djline.WindowsTerminal.directConsole=false -Djline.terminal=jline.UnsupportedTerminal

build.gradle

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
buildscript {
2+
repositories {
3+
maven { url 'http://repo.spring.io/libs-release' }
4+
maven { url 'http://repo.spring.io/plugins-release' }
5+
}
6+
7+
dependencies {
8+
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE")
9+
classpath 'org.springframework:springloaded:1.2.4.RELEASE'
10+
}
11+
}
12+
13+
14+
apply plugin: 'java'
15+
apply plugin: 'idea'
16+
apply plugin: 'org.springframework.boot'
17+
apply plugin: 'application'
18+
19+
idea {
20+
module {
21+
inheritOutputDirs = false
22+
outputDir = file("$buildDir/classes/main/")
23+
24+
testOutputDir = file('build-test')
25+
}
26+
}
27+
28+
29+
bootRun {
30+
addResources = true
31+
}
32+
33+
bootRepackage {
34+
enabled = false
35+
withJarTask = jar
36+
executable = false
37+
}
38+
39+
springBoot {
40+
mainClass = "com.avast.server.hdfsshell.MainApp"
41+
}
42+
43+
44+
repositories {
45+
maven { url 'https://artifactory.int.avast.com/artifactory/maven' }
46+
maven { url 'http://repo.spring.io/libs-release' }
47+
maven { url 'http://repo.spring.io/plugins-release' }
48+
}
49+
50+
jar {
51+
52+
manifest {
53+
attributes("Implementation-Version": project.getVersion())
54+
}
55+
}
56+
57+
mainClassName = "com.avast.server.hdfsshell.MainApp"
58+
59+
60+
allprojects {
61+
tasks.withType(Javadoc).all { enabled = false }
62+
}
63+
64+
sourceCompatibility = 1.8
65+
targetCompatibility = 1.8
66+
67+
68+
dependencies {
69+
compile("org.springframework.boot:spring-boot-starter:1.4.3.RELEASE"){
70+
exclude group: 'org.slf4j', module: 'log4j-over-slf4j'
71+
exclude group: 'ch.qos.logback'
72+
}
73+
compile "org.springframework.shell:spring-shell:1.2.0.RELEASE"
74+
75+
compile 'com.kohlschutter.junixsocket:junixsocket-native-common:2.0.4'
76+
compile 'com.kohlschutter.junixsocket:junixsocket-common:2.0.4'
77+
78+
compile "org.apache.hadoop:hadoop-client:2.6.0"
79+
80+
testCompile 'junit:junit:4.12'
81+
testCompile("org.springframework.boot:spring-boot-starter-test:1.4.2.RELEASE")
82+
}
83+

deploy/bin/hdfs-shell-daemon.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
java -Ddaemon=true -Xms200m -Xmx400m -cp /var/hdfs-shell/lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"

deploy/bin/hdfs-shell.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
java -Xms200m -Xmx400m -cp /var/hdfs-shell/lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"

gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
springShellVersion = 1.2.0.RELEASE
2+
3+

gradle/wrapper/gradle-wrapper.jar

51.7 KB
Binary file not shown.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Mon Jan 16 08:25:21 CET 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-bin.zip

0 commit comments

Comments
 (0)