tar xzf kafka-.tgz > cd kafka-

Why run sbt with the prefix "./"? he does not work

I am trying to install Kafka and the docs say:

> tar xzf kafka-<VERSION>.tgz
> cd kafka-<VERSION>
> ./sbt update
> ./sbt package
> ./sbt assembly-package-dependency

So, when I try to run ./sbt update, I get this error:

root@kfk1:~/kafka-0.8.1.1-src# ./sbt
-bash: ./sbt: No such file or directory

But if I try without "./", this will work:

root@kfk1:~/kafka-0.8.1.1-src# sbt update
Getting org.scala-sbt sbt 0.13.5 ...
  • Is this prefix mandatory? Why?
  • If I do not use, will the executed command be the same?
+4
source share
3 answers

Make sure the sbt file exists and has execute permissions.

./ means search in the current directory for the script.

. == current directory .. == parent directory

+2
source

, Kafka 0.8.1.1 gradle, sbt. sbt .

0

do not need anymore. / sbt all java kafka files are in the lib folder

0
source

Source: https://habr.com/ru/post/1546899/


All Articles