예제 #1
0
def new_lzo(nHours, frags):
    lzo = []
    for h in xrange(0, nHours):
        hk = hour_key(h)
        lzo.append(newHdfsLzo(hk))
        for f in xrange(0, frags):
            valformd5 = HashUtil.sha1sumHex("%d:%d" % (hk, f))
            lzo.append(newCloudFilesLzo(hk, frag=f, md5=valformd5))
    return lzo
예제 #2
0
def new_lzo(nHours,frags):
    lzo = []
    for h in xrange(0,nHours):
        hk = hour_key(h)
        lzo.append(newHdfsLzo(hk))
        for f in xrange(0,frags):
            valformd5 = HashUtil.sha1sumHex("%d:%d"%(hk,f))
            lzo.append(newCloudFilesLzo(hk,frag=f,md5=valformd5))
    return lzo
예제 #3
0
#!/usr/bin/env jython

import org.openstack.atlas.util.crypto.HashUtil as HashUtil
from zxtm import *
from utils import *
from db import *

app = getDb()
#db.buildClassImportFile("db_classes.py","local.json")

from db_classes import *

a = Account()
a.setId(1)
sha1 = HashUtil.sha1sumHex("1", 0, 4)
a.setSha1SumForIpv6(sha1)
a.setClusterType(ClusterType.INTERNAL)

zt = getZeusTest(hid=1)
예제 #4
0
#!/usr/bin/env jython

import org.openstack.atlas.util.crypto.HashUtil as HashUtil
from zxtm import *
from utils import *
from db import *

app = getDb()
#db.buildClassImportFile("db_classes.py","local.json")

from db_classes import *

a = Account()
a.setId(1)
sha1=HashUtil.sha1sumHex("1",0,4)
a.setSha1SumForIpv6(sha1)
a.setClusterType(ClusterType.INTERNAL)


zt = getZeusTest(hid=1)