Open jenkins-clearwater opened 7 years ago
[sebrexmetaswitch]
These scripts should be run from the homestead node. If you have more than one homestead node, it doesn't matter which one of them you run it from.
[minhnv-viosoft]
if run from HomeStead I'll get the error cd /usr/share/clearwater/crest/tools/sstable_provisioning => bash: cd: /usr/share/clearwater/crest/tools/sstable_provisioning: No such file or directory
if run from Cassandra node I'll get the error :
sudo /usr/share/clearwater/crest/env/bin/python ./prepare_csv.py users.csv
=> sudo: /usr/share/clearwater/crest/env/bin/python: command not found
That is what I mean, Please help, or update script auto run.
in BulkProvision I see
for jar in $CASSANDRA_HOME/lib/*.jar; do CLASSPATH=$CLASSPATH:$jar done
$CASSANDRA_HOME only available on Cassandra node, right ?
[sebrexmetaswitch]
What is your environment? You've just specified Ubuntu, but the standard homestead-node package includes both homestead and cassandra. Why are your homestead and cassandra nodes separate? Are you running in Docker?
[minhnv-viosoft]
Yes, I setup following https://github.com/Metaswitch/clearwater-docker
and BulkProvision https://github.com/Metaswitch/crest/blob/dev/src/metaswitch/crest/tools/sstable_provisioning/README.md
[minhnv-viosoft]
Symptoms
follow this doc : https://github.com/Metaswitch/crest/blob/master/src/metaswitch/crest/tools/sstable_provisioning/README.md
1)Pre-requisites step "The bulk provisioning binaries - automatically installed on Homestead database nodes to /usr/share/clearwater/crest/tools/sstable_provisioning" it only available on Cassandra ( in Homestead is not exist )
2) step - From CSV
sudo /usr/share/clearwater/crest/env/bin/python ./prepare_csv.py.csv
( its only avalable on Homestead )
Impact
=> which node to run these script ?
Release and environment
ubuntu desktop 14.04 x64 kernel 4.4.0-51-generic
Steps to reproduce
[Used to be https://github.com/Metaswitch/crest/issues/315]