Ejemplo n.º 1
0
def testMovement ():
    """testMovement (this will take 15-20 seconds)"""
    config = sutil.DotDict({'logger': sutil.SilentFakeLogger(),
                            'numberOfThreads': 1,
                          })
    fakeHbaseStorage = getHbaseStorage1(config)
    smover.move(config,
                sourceCrashStorageClass=fakeSource,
                destCrashStorageClass=fakeHbaseStorage)
Ejemplo n.º 2
0
def testMovement():
    """testMovement (this will take 15-20 seconds)"""
    config = sutil.DotDict({
        'logger': sutil.SilentFakeLogger(),
        'numberOfThreads': 1,
    })
    fakeHbaseStorage = getHbaseStorage1(config)
    smover.move(config,
                sourceCrashStorageClass=fakeSource,
                destCrashStorageClass=fakeHbaseStorage)
Ejemplo n.º 3
0
import sys
import logging
import logging.handlers

import config.crashmoverconfig as cmconf

import socorro.lib.ConfigurationManager as configurationManager
import socorro.storage.storageMover as smover
import socorro.lib.util as sutil

try:
    config = configurationManager.newConfiguration(
        configurationModule=cmconf, applicationName="New Crash Mover")
except configurationManager.NotAnOptionError, x:
    print >> sys.stderr, x
    print >> sys.stderr, "for usage, try --help"
    sys.exit()

logger = logging.getLogger("newCrashMover")
logger.setLevel(logging.DEBUG)

sutil.setupLoggingHandlers(logger, config)
sutil.echoConfig(logger, config)

config.logger = logger

try:
    smover.move(config)
finally:
    logger.info("done.")
Ejemplo n.º 4
0
import logging.handlers

import config.crashmoverconfig as cmconf

import socorro.lib.ConfigurationManager as configurationManager
import socorro.storage.storageMover as smover
import socorro.lib.util as sutil

try:
  config = configurationManager.newConfiguration(configurationModule=cmconf, applicationName="New Crash Mover")
except configurationManager.NotAnOptionError, x:
  print >>sys.stderr, x
  print >>sys.stderr, "for usage, try --help"
  sys.exit()

logger = logging.getLogger("newCrashMover")
logger.setLevel(logging.DEBUG)

sutil.setupLoggingHandlers(logger, config)
sutil.echoConfig(logger, config)

config.logger = logger

try:
  smover.move(config)
finally:
  logger.info("done.")