DataStax Bulk Loader 1.7.0 for Apache Cassandra installation doesn't work on Ubuntu

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-28 07:50:34

问题


maybe this could be very helpful to other people.

This is the link in which is explained the installatif DSbulk loader.

https://docs.datastax.com/en/dsbulk/doc/dsbulk/install/dsbulkInstall.html

Someone could explain step by step the procedure to install it?

The first part in the link is very clear, but if you have installed JAVA (as in my case) when on terminal you run " dsbulk --version " it says "command not found".

I hope this will be very helpful, there are no tutorials neither on youtube.

Thank you


回答1:


If you want to run it this way, then you need to put the bin directory of the DSBulk distribution into the shell's PATH. If you're staying in the top directory of DSBulk, then you can do following:

export PATH=$PATH:$(pwd)/bin

and then you can call it as dsbulk. Another alternatives are to call it as bin/dsbulk, or full_path/bin/dsbulk




回答2:


Thank you all! Problem solved!

Many times it happens that it must be set the right path to use java...so you need to follow this link (very useful):

https://vitux.com/how-to-setup-java_home-path-in-ubuntu/

Then on terminal:

$ export PATH=path-to-unpacked-location/dsbulk-1.7.0/bin:$PATH

$ source ~/.bashrc

$ dsbulk --version

please don't copy $ when you want to insert code into the terminal! XD

and! That's it!



来源:https://stackoverflow.com/questions/64682683/datastax-bulk-loader-1-7-0-for-apache-cassandra-installation-doesnt-work-on-ubu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!