From 3ff9698295bb40fc5deb587138159ae4a1bf46a4 Mon Sep 17 00:00:00 2001 From: bohanjason Date: Fri, 22 May 2020 01:07:22 -0400 Subject: [PATCH] set oltpbench config in driver --- client/driver/fabfile.py | 75 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/client/driver/fabfile.py b/client/driver/fabfile.py index 06e47c3..29537e0 100644 --- a/client/driver/fabfile.py +++ b/client/driver/fabfile.py @@ -87,8 +87,8 @@ def create_controller_config(): if dconf.DB_VERSION in ['5.6', '5.7']: dburl_fmt = 'jdbc:mysql://{host}:{port}/{db}?useSSL=false'.format elif dconf.DB_VERSION == '8.0': - dburl_fmt = 'jdbc:mysql://{host}:{port}/{db}?\ - allowPublicKeyRetrieval=true&useSSL=false'.format + dburl_fmt = ('jdbc:mysql://{host}:{port}/{db}?' + 'allowPublicKeyRetrieval=true&useSSL=false').format else: raise Exception("MySQL Database Version {} Not Implemented !".format(dconf.DB_VERSION)) else: @@ -636,6 +636,74 @@ def clean_oltpbench_results(): local('rm -f {}/results/*'.format(dconf.OLTPBENCH_HOME)) +def _set_oltpbench_property(name, line): + if name == 'username': + ss = line.split('username') + new_line = ss[0] + 'username>{}{}{}