2ed831cc1094ced6f558f67a3551fcd493d92f6f,perfkitbenchmarker/linux_packages/ycsb.py,,_Install,#Any#,257
Before Change
"tar -C {0} --strip-components=1 -xzf -")
vm.RemoteCommand(install_cmd.format(YCSB_DIR, ycsb_url))
vm.RemoteCommand(install_cmd.format(HDRHISTOGRAM_DIR, HDRHISTOGRAM_TAR_URL))
vm.RemoteCommand("sudo apt-get --assume-yes install maven > /dev/null 2>&1")
// _JAVA_OPTIONS needed to work around this issue:
// https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class
vm.RemoteCommand("cd {0}; _JAVA_OPTIONS=-Djdk.net.URLClassPath."
"disableClassPathURLCheck=true "
After Change
install_cmd = ("mkdir -p {0} && curl -L {1} | "
"tar -C {0} --strip-components=1 -xzf -")
vm.RemoteCommand(install_cmd.format(YCSB_DIR, ycsb_url))
if _GetVersionIndex(FLAGS.ycsb_version) >= 11:
vm.Install("maven")
vm.RemoteCommand(install_cmd.format(HDRHISTOGRAM_DIR, HDRHISTOGRAM_TAR_URL))
// _JAVA_OPTIONS needed to work around this issue:
// https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class
vm.RemoteCommand("cd {hist_dir}; _JAVA_OPTIONS=-Djdk.net.URLClassPath."
"disableClassPathURLCheck=true "
"{mvn_cmd} > /dev/null 2>&1".format(
hist_dir=HDRHISTOGRAM_DIR,
mvn_cmd=maven.GetRunCommand("install")))
def YumInstall(vm):
Installs the YCSB package on the VM.
_Install(vm)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 2ed831cc1094ced6f558f67a3551fcd493d92f6f
Time: 2020-03-17
Author: florin.papa@intel.com
File Name: perfkitbenchmarker/linux_packages/ycsb.py
Class Name:
Method Name: _Install
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 2e2c6cc8a6c9c51fdcee445dcc479ac3b981f8e5
Time: 2020-04-03
Author: p3rf@google.com
File Name: perfkitbenchmarker/linux_packages/cuda_toolkit.py
Class Name:
Method Name: AptInstall
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: e8484040bc8cd6f5383595d7a6882d0e319f724a
Time: 2018-01-04
Author: tohaowu@google.com
File Name: perfkitbenchmarker/linux_benchmarks/mnist_benchmark.py
Class Name:
Method Name: Prepare