linux - How to run Cassandra (cqlsh) from anywhere -
in cassandra official documentation (https://wiki.apache.org/cassandra/gettingstarted) states, start service use
'bin/cassandra -f'
then use
'bin/cqlsh'
to access. use cqlsh in way have go bin folder. procedure make work such can type 'cqlsh' anywhere in console access (not have in bin folder of cassandra setup) ?
(just access python directly anywhere typing python3 in console )
to work work, have add cassandra bin
directory $path
.
from terminal prompt, check contents of $path
.
$ echo $path
on ubuntu vm, see:
/usr/local/apache-maven/apache-maven-3.1.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.7.0_45/bin
since mention python3, i'll check location of on system well:
$ python3 /usr/bin/python3
as can see, python3 in /usr/bin
directory, , /usr/bin
in $path
, why typing python3
works me (and well).
there few ways cassandra bin
directory $path
. there debate "correct" way accomplish this. in lieu of telling how i it, provide link question on askubuntu details 3 ways add directory $path
: how add directory path?
Comments
Post a Comment