Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
424a25ed
Commit
424a25ed
authored
13 years ago
by
Hariprasad Kuppuswamy
Browse files
Options
Downloads
Patches
Plain Diff
Deleting the old structure of bin folder as well
parent
2dc263e2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/ycsb.sh
+0
-121
0 additions, 121 deletions
bin/ycsb.sh
with
0 additions
and
121 deletions
bin/ycsb.sh
deleted
100755 → 0
+
0
−
121
View file @
2dc263e2
#! /usr/bin/env bash
# Set the YCSB specific environment. Adds all the required libraries to the class path.
# Copyright (c) 2010 Yahoo! Inc. All rights reserved.
# *
# * Licensed under the Apache License, Version 2.0 (the "License"); you
# * may not use this file except in compliance with the License. You
# * may obtain a copy of the License at
# *
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS,
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# * implied. See the License for the specific language governing
# * permissions and limitations under the License. See accompanying
# * LICENSE file.
#
# The Java implementation to use. This is required.
#export JAVA_HOME=
# Any JVM options to pass.
#export YCSB_OPTS="-Djava.compiler=NONE"
# YCSB client heap size.
#export YCSB_HEAP_SIZE=500
this
=
`
dirname
"
$0
"
`
this
=
`
cd
"
$this
"
;
pwd
`
while
[
-h
"
$this
"
]
;
do
ls
=
`
ls
-ld
"
$this
"
`
link
=
`
expr
"
$ls
"
:
'.*-> \(.*\)$'
`
if
expr
"
$link
"
:
'.*/.*'
>
/dev/null
;
then
this
=
"
$link
"
else
this
=
`
dirname
"
$this
"
`
/
"
$link
"
fi
done
bin
=
`
dirname
"
$this
"
`
script
=
`
basename
"
$this
"
`
bin
=
`
cd
"
$bin
"
;
pwd
`
this
=
"
$bin
/
$script
"
# the root of the Hadoop installation
export
YCSB_HOME
=
`
dirname
"
$this
"
`
echo
"YCSB_HOME
$YCSB_HOME
"
cygwin
=
false
case
"
`
uname
`
"
in
CYGWIN
*
)
cygwin
=
true
;;
esac
# if no args specified, show usage
if
[
$#
=
0
]
;
then
echo
"Usage: ycsb CLASSNAME"
echo
"where CLASSNAME is the name of the class to run"
echo
"The jar file for the class must be in bin, build, lib, or db/*/lib."
exit
1
fi
# get arguments
COMMAND
=
$1
shift
JAVA
=
""
if
[
"
$JAVA_HOME
"
!=
""
]
;
then
JAVA
=
$JAVA_HOME
/bin/java
else
echo
"JAVA_HOME must be set."
exit
1
fi
JAVA_HEAP_MAX
=
-Xmx500m
# check envvars which might override default args
if
[
"
$YCSB_HEAP_SIZE
"
!=
""
]
;
then
JAVA_HEAP_MAX
=
"-Xmx""
$YCSB_HEAP_SIZE
""m"
fi
# Set the classpath.
if
[
"
$CLASSPATH
"
!=
""
]
;
then
CLASSPATH
=
${
CLASSPATH
}
:
$JAVA_HOME
/lib/tools.jar
else
CLASSPATH
=
$JAVA_HOME
/lib/tools.jar
fi
# so that filenames w/ spaces are handled correctly in loops below
IFS
=
for
f
in
$YCSB_HOME
/lib/
*
.jar
;
do
CLASSPATH
=
${
CLASSPATH
}
:
$f
done
for
f
in
$YCSB_HOME
/db/
*
;
do
if
[
-d
$f
]
;
then
for
j
in
$f
/lib/
*
.jar
;
do
CLASSPATH
=
${
CLASSPATH
}
:
$j
done
fi
done
echo
"CLASSPATH=
$CLASSPATH
"
# restore ordinary behavior
unset
IFS
CLASS
=
$COMMAND
# cygwin path translation
if
$cygwin
;
then
CLASSPATH
=
`
cygpath
-p
-w
"
$CLASSPATH
"
`
YCSB_HOME
=
`
cygpath
-w
"
$YCSB_HOME
"
`
fi
#echo "Executing command $CLASS with options $JAVA_HEAP_MAX $YCSB_OPTS $CLASS $@"
exec
"
$JAVA
"
$JAVA_HEAP_MAX
$YCSB_OPTS
-classpath
"
$CLASSPATH
"
$CLASS
"
$@
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment