def getjars(self, delim=','): accumulo_core_jar = self.findjar(accumulo('lib', 'accumulo-core.jar')) accumulo_start_jar = self.findjar(accumulo('lib', 'accumulo-start.jar')) accumulo_fate_jar = self.findjar(accumulo('lib', 'accumulo-fate.jar')) accumulo_trace_jar = self.findjar(accumulo('lib', 'accumulo-trace.jar')) accumulo_thrift_jar = self.findjar(accumulo('lib', 'libthrift.jar')) accumulo_zookeeper_jar = self.findjar(os.path.join(os.getenv('ZOOKEEPER_HOME'), 'zookeeper*.jar')) return delim.join([accumulo_core_jar, accumulo_thrift_jar, accumulo_zookeeper_jar, accumulo_start_jar, accumulo_fate_jar, accumulo_trace_jar])
def getjars(self, delim=","): accumulo_core_jar = self.findjar(accumulo("lib", "accumulo-core.jar")) accumulo_start_jar = self.findjar(accumulo("lib", "accumulo-start.jar")) accumulo_fate_jar = self.findjar(accumulo("lib", "accumulo-fate.jar")) accumulo_trace_jar = self.findjar(accumulo("lib", "accumulo-trace.jar")) accumulo_thrift_jar = self.findjar(accumulo("lib", "libthrift.jar")) accumulo_zookeeper_jar = self.findjar(os.path.join(os.getenv("ZOOKEEPER_HOME"), "zookeeper*.jar")) return delim.join( [ accumulo_core_jar, accumulo_thrift_jar, accumulo_zookeeper_jar, accumulo_start_jar, accumulo_fate_jar, accumulo_trace_jar, ] )
def buildcommand(self, classname, *args): return [ accumulo('bin', 'accumulo'), classname, '-libjars', self.getjars() ] + list(map(str, args))
def getexamplejar(self): return self.findjar(accumulo() + '/lib/accumulo-examples*.jar')
def gettestjar(self): return self.findjar(accumulo() + '/lib/accumulo-test.jar')
def getexamplejar(self): return self.findjar(accumulo() + '/lib/examples-simple*.jar')
def buildcommand(self, classname, *args): return [accumulo('bin', 'accumulo'), classname, '-libjars', self.getjars()] + list(map(str, args))
def getexamplejar(self): return self.findjar(accumulo() + "/lib/accumulo-examples-simple.jar")
def buildcommand(self, classname, *args): return [accumulo("bin", "accumulo"), classname, "-libjars", self.getjars()] + list(map(str, args))