zoukankan      html  css  js  c++  java
  • spec 2016使用

    1. 制作cassandra and ycsb

    1.1 编译安装netcat

    $ wget http://sourceforge.net/projects/netcat/files/netcat/0.5.0/netcat-0.5.0.tar.gz
    $ tar -zxvf netcat-0.5.0.tar.gz
    $ cd netcat-0.5.0
    $ ./configure --prefix=/opt/netcat --build=arm
    $ make -j
    $ make install
    $ nc --help

     1.2 cassandra错误排除

     1.2.1 日志/var/log/cassandra/cassandra.log报:

    The stack size specified is too small, Specify at least 228k
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

    解决:修改/etc/cassandra/cassandra-env.sh中JVM_OPTS="$JVM_OPTS -Xss512k"

    1.3 搜集虚拟机信息出现错误

    [root@harness support_script]# ./collect_support_data.sh remote_vm_sysinfo 172.16.101.13 cbuser /home/osgcloud/cbtool/credentials/cbtool_rsa /tmp/instance/
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    SHA256:7r8UP9vmJ4i4pqgOdUEEE/7nqcgk/HQogLdFNC04iJE.
    Please contact your system administrator.
    Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /root/.ssh/known_hosts:17
    Password authentication is disabled to avoid man-in-the-middle attacks.
    Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
    sudo: brctl: command not found
    sudo: dpkg: command not found
    
    Note: This output shows SysV services only and does not include native
          systemd services. SysV configuration data might be overridden by native
          systemd configuration.
    
          If you want to list systemd services use 'systemctl list-unit-files'.
          To see services enabled on particular target use
          'systemctl list-dependencies [target]'.

    需要安装brctl和dpkg,具体如下:

    sudo yum install bridge-utils
    sudo yum install dpkg

    2. cbtool工具bug

    2.1 连接到云后,当使用aiattach cassandra_ycsb时,容易出现:

    无法发现flavors问题

    解决方式:通过修改osk_cloud_ops.py

      53 class OskCmds(CommonCloudFunctions) :
      54     '''
      55     TBD
      56     '''
      57     @trace
      58     def __init__ (self, pid, osci, expid = None) :
      59         '''
      60         TBD
      61         '''
      62         CommonCloudFunctions.__init__(self, pid, osci)
      63         self.pid = pid
      64         self.osci = osci
      65         self.oskconncompute = False
      66         self.oskconnstorage = False
      67         self.flavors = False #hrp
      68         self.expid = expid
      69         self.ft_supported = False
      70         self.lvirt_conn = {}
      71         self.networks_attr_list = { "tenant_network_list":[] }
      72         self.host_map = {}
      73         self.api_error_counter = {}
      74         self.additional_rc_contents = ''
      75         self.max_api_errors = 10
      84     @trace
      85     def connect(self, access_url, authentication_data, region, extra_parms = {}, diag = False, generate_rc = False) :
      86         '''
      87         TBD
      88         '''
      89         try :
      90             _status = 100
      91             _fmsg = "An error has occurred, but no error message was captured"
      92             _dmsg = ''
      93
      94             _version = '2'
    .
    .
    .
     168                 if _session :
     169                     self.oskconncompute = novac.Client("2.1", session = _session)
     170                 else :
     171                     self.oskconncompute = novac.Client(**_credentials)
     172
     173                 self.flavors = self.oskconncompute.flavors.list() #hrp
    2445     def get_flavors(self, obj_attr_list) :
    2446         '''
    2447         TBD
    2448         '''
    2449         try :
    2450             _status = 100
    2451             _fmsg = "An error has occurred, but no error message was captured"
    2452
    2453             #_flavor_list = self.oskconncompute.flavors.list()
    2454             _flavor_list = self.flavors #hrp
  • 相关阅读:
    QT 创建一个线程播放监控视频
    C++基础(静态数据成员和静态成员函数)
    SDK的使用步骤
    QT加载自带字体
    QT release版QAudioDeviceInfo获取不到音频设备,而debug版可以获取到
    通过vs2015给QT添加模块
    pycharm修改字体与主题
    日志学习(二)——日志处理封装
    日志学习(一)
    配置文件学习(二)--写入配置文件
  • 原文地址:https://www.cnblogs.com/hurongpu/p/8629079.html
Copyright © 2011-2022 走看看