In fact, I made a little progress in installing sparkling-water, I close iptables, and tried several times with command: ./gradlew build. I could pass the following error.
[root@blade12 sparkling-water]# ./gradlew build
Cannot find Spark master - please specify MASTER env variable or pass -PsparkMaster property to gradle script
Cannot find Spark master - please specify MASTER env variable or pass -PsparkMaster property to gradle script
Cannot find Spark master - please specify MASTER env variable or pass -PsparkMaster property to gradle script
Cannot find Spark master - please specify MASTER env variable or pass -PsparkMaster property to gradle script
:sparkling-water-core:compileJava UP-TO-DATE
:sparkling-water-core:compileScala
Error occurred during initialization of VM
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Could not reserve enough space for object heap
Could not write standard input into: Gradle Compiler Daemon 1.
java.io.IOException: Broken pipe
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:345)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:50)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
:sparkling-water-core:compileScala FAILED
Total time: 21.187 secs
I also tried ./gradlew --debug
There are lots of output. Here are the last few lines of the output.
16:47:23.773 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-repository.bin (/root/.gradle/caches/modules-2/metadata-2.14/artifact-at-repository.bin)
16:47:23.773 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (/root/.gradle/caches/modules-2/metadata-2.14/module-metadata.bin)
16:47:23.773 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-artifacts.bin (/root/.gradle/caches/modules-2/metadata-2.14/module-artifacts.bin)
16:47:23.773 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/root/.gradle/caches/modules-2).
16:47:23.782 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache task history cache (/home/Galaxy/zxx/sparkling-water/.gradle/2.2.1/taskArtifacts) was closed 0 times.
16:47:23.782 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory ] In-memory dependency metadata cache closed. Repos cached: 11, cache instances: 6, modules served from cache: 224, artifacts: 43
16:47:23.784 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactor] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
16:47:23.784 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactor] Resolved configuration cache closed. Cache reads: 0, disk reads: 2 (avg: 0.052 secs, total: 0.105 secs)
16:47:23.784 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory ] Deleted 2 resolution results binary files in 0.0 secs
Thanks very much for you kind help.