Class org.springframework.data.hadoop.scripting.ScriptingTest

9

tests

0

failures

0.299s

duration

100%

successful

Tests

Test Duration Result
testDistCp 0.001s passed
testInlinedScriptNSJavaScript 0.002s passed
testNullCfg 0.005s passed
testRhinoHadoopScript 0.132s passed
testRhinoScript 0.003s passed
testScriptNSJGroovy 0.002s passed
testScriptNSJRuby 0.150s passed
testScriptNSJavaScript 0.002s passed
testScriptNSJython 0.002s passed

Standard output

23:44:12,895  INFO Test worker context.TestContextManager - @TestExecutionListeners is not present for class [class org.springframework.data.hadoop.scripting.ScriptingTest]: using defaults.
23:44:12,898  INFO Test worker xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/data/hadoop/scripting/ScriptingTest-context.xml]
23:44:12,936  INFO Test worker xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/data/hadoop/hadoop-ctx.xml]
23:44:12,969  INFO Test worker support.GenericApplicationContext - Refreshing org.springframework.context.support.GenericApplicationContext@59d559f3: startup date [Wed Sep 25 23:44:12 EDT 2013]; root of context hierarchy
23:44:12,973  INFO Test worker config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [test.properties]
23:44:12,974  INFO Test worker annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
23:44:12,975  INFO Test worker support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3ecd010e: defining beans [ppc,hadoopFs,hadoopResourceLoader,hadoopConfiguration,cfg-init,fs-init,rl-init,org.springframework.data.hadoop.scripting.HdfsScriptRunner#0,script-js,script-py,script-rb,script-groovy,distcp,inlined-js,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor]; root of factory hierarchy
23:44:13,022  WARN Test worker conf.Configuration - fs.default.name is deprecated. Instead, use fs.defaultFS
23:44:13,027  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
23:44:13,047  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
23:44:13,049  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
23:44:13,050  WARN Test worker scripting.HdfsScriptRunner - No Hadoop Configuration detected; not binding Configuration as variable 'cfg' to script
23:44:13,050  WARN Test worker scripting.HdfsScriptRunner - No Hadoop Configuration or ResourceLoader detected; not binding variable 'hdfsRL' to script
23:44:13,051  WARN Test worker scripting.HdfsScriptRunner - No Hadoop Configuration or FileSystem detected; not binding variable 'fs' to script
23:44:13,051  WARN Test worker scripting.HdfsScriptRunner - No Hadoop Configuration detected; not binding DistCp as variable 'distcp' to script
23:44:13,051  WARN Test worker scripting.HdfsScriptRunner - No Hadoop Configuration detected; not binding FsShell as variable 'fsh' to script
23:44:13,056  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
23:44:13,062  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
Home dir is hdfs://sandbox:8020/user/trisberg
Work dir is hdfs://sandbox:8020/user/trisberg
/user exists true
File content is #
# Hadoop/Hive/Pig settings used for settings
#
# Note: the system properties are checked first - that is the command-line takes precedence (useful for CI) 

# Amazon EMR
# hive.port=10003
# hd.fs=s3n://work-emr/tmp
# hd.jt=localhost:20001
# hd.jt=10.80.205.79:9001

# Apache Whirr - EC2
# hd.fs=hdfs://xxx.amazonaws.com:8020
# hd.jt=xxx.amazonaws.com:8021

# Default - Vanilla Installs
#hd.fs=hdfs://${hadoop.host:localhost}:${hadoop.port:9000}

#
# Hadoop settings
#

## M&R
hadoop.fs=${hd.fs|hdfs://localhost:8020}
hadoop.jt=${hd.jt|local}

## Hive
hive.host=${hd.hive.host|localhost}
hive.port=${hd.hive.port|10000}
hive.url=jdbc:hive://${hive.host}:${hive.port}

## HBase
hbase.host=${hd.hbase.host|localhost}
hbase.port=${hd.hbase.port|2181}

## Pig Execution
## externalized since CDH3 VM Pig install has issues (SL4J CNFE) 
pig.execution=${hd.pig.exec|LOCAL}

#
# Other settings
#

#path.cat=bin${file.separator}stream-bin${file.separator}cat
#path.wc=bin${file.separator}stream-bin${file.separator}wc
path.cat=cat
path.wc=wc

input.directory=logs
log.input=/logs/input/
log.output=/logs/output/

distcp.src=${hadoop.fs}/distcp/source.txt
distcp.dst=${hadoop.fs}/distcp/dst

cascade.sec=/test/cascading/loganalysis/sec
cascade.min=/test/cascading/loganalysis/min
drwx------   - trisberg   hdfs                0 2013-09-25 17:42 /user/trisberg/script-dir
-rw-r--r--   3 trisberg   hdfs             1271 2013-09-25 17:42 /user/trisberg/script-dir/6652cb95-7f78-47ea-b274-810f9ecb4702
23:44:13,185  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
23:44:13,193  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
23:44:13,195  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.
23:44:13,197  INFO Test worker fs.TrashPolicyDefault - Namenode trash configuration: Deletion interval = 0 minutes, Emptier interval = 0 minutes.