我安装了 .deb
Package Ubuntu 16.04
的 confluent 4.1
我能通过考试 quickstart
好的。然而,有些事情需要 env
要设置的变量:
$CONFLUENT_HOME is not defined. Run 'export CONFLUENT_HOME=/path/to/confluentplatform'
我看了看:
/opt
/usr/local
/usr/lib
但却无处可寻。然后我试着:
idf@idf-vb:~$find / -iname confluence 2>&1 | grep -v "Permission denied"
还是没什么。尝试:
idf@idf-vb:~$ find / -iname confluent 2>&1 | grep -v "Permission denied"
/var/log/confluent
/home/idf/Documents/confluent
/home/idf/Documents/confluent/quickstart-demos/connect-streams-pipeline/src/main/java/io/confluent
/home/idf/Documents/confluent/quickstart-demos/connect-streams-pipeline/src/main/resources/avro/io/confluent
/usr/bin/confluent
我确实找到了
idf@idf ls /etc/confluent-common/
但目录里什么都没有
除了 /usr/bin
可执行文件的目录,它看起来不像 home
目录,什么都没有。这个 confluent
下的目录 idf
这些只是例子。
在哪里可以找到安装目录?
编辑1
做完之后
idf@idf-vb:~$ find / -iname confluent* 2>&1 | grep -v "Permission denied"
我确实得到了一堆目录,但仍然不确定 HOME
目录是:
idf@idf-vb:~/Documents/confluent$ find / -iname confluent* 2>&1 | grep -v "Permission denied"
/var/lib/systemd/deb-systemd-helper-enabled/confluent-zookeeper.service.dsh-also
/var/lib/systemd/deb-systemd-helper-enabled/confluent-kafka.service.dsh-also
/var/lib/systemd/deb-systemd-helper-enabled/confluent-schema-registry.service.dsh-also
/var/lib/systemd/deb-systemd-helper-enabled/confluent-ksql.service.dsh-also
/var/lib/systemd/deb-systemd-helper-enabled/confluent-kafka-connect.service.dsh-also
/var/lib/systemd/deb-systemd-helper-enabled/confluent-kafka-rest.service.dsh-also
/var/lib/dpkg/info/confluent-schema-registry.postrm
/var/lib/dpkg/info/confluent-kafka-connect-hdfs.list
/var/lib/dpkg/info/confluent-kafka-connect-elasticsearch.list
/var/lib/dpkg/info/confluent-kafka-connect-storage-common.list
/var/lib/dpkg/info/confluent-ksql.postrm
/var/lib/dpkg/info/confluent-ksql.postinst
/var/lib/dpkg/info/confluent-kafka-connect-s3.list
/var/lib/dpkg/info/confluent-cli.list
/var/lib/dpkg/info/confluent-kafka-connect-storage-common.md5sums
/var/lib/dpkg/info/confluent-ksql.prerm
/var/lib/dpkg/info/confluent-ksql.md5sums
/var/lib/dpkg/info/confluent-kafka-rest.prerm
/var/lib/dpkg/info/confluent-kafka-rest.conffiles
/var/lib/dpkg/info/confluent-kafka-connect-elasticsearch.md5sums
/var/lib/dpkg/info/confluent-common.md5sums
/var/lib/dpkg/info/confluent-rest-utils.list
/var/lib/dpkg/info/confluent-schema-registry.conffiles
/var/lib/dpkg/info/confluent-platform-oss-2.11.md5sums
/var/lib/dpkg/info/confluent-kafka-2.11.postinst
/var/lib/dpkg/info/confluent-kafka-connect-jdbc.conffiles
/var/lib/dpkg/info/confluent-kafka-connect-hdfs.conffiles
/var/lib/dpkg/info/confluent-kafka-rest.md5sums
/var/lib/dpkg/info/confluent-cli.md5sums
/var/lib/dpkg/info/confluent-kafka-rest.postrm
/var/lib/dpkg/info/confluent-kafka-connect-hdfs.md5sums
/var/lib/dpkg/info/confluent-schema-registry.list
/var/lib/dpkg/info/confluent-kafka-connect-s3.md5sums
/var/lib/dpkg/info/confluent-schema-registry.postinst
/var/lib/dpkg/info/confluent-kafka-connect-jdbc.md5sums
/var/lib/dpkg/info/confluent-camus.md5sums
/var/lib/dpkg/info/confluent-camus.conffiles
/var/lib/dpkg/info/confluent-kafka-2.11.list
/var/lib/dpkg/info/confluent-camus.list
/var/lib/dpkg/info/confluent-kafka-rest.list
/var/lib/dpkg/info/confluent-ksql.conffiles
/var/lib/dpkg/info/confluent-kafka-connect-jdbc.list
/var/lib/dpkg/info/confluent-kafka-connect-elasticsearch.conffiles
/var/lib/dpkg/info/confluent-ksql.list
/var/lib/dpkg/info/confluent-kafka-connect-s3.conffiles
/var/lib/dpkg/info/confluent-platform-oss-2.11.list
/var/lib/dpkg/info/confluent-kafka-2.11.md5sums
/var/lib/dpkg/info/confluent-schema-registry.prerm
/var/lib/dpkg/info/confluent-rest-utils.md5sums
/var/lib/dpkg/info/confluent-kafka-rest.postinst
/var/lib/dpkg/info/confluent-kafka-2.11.conffiles
/var/lib/dpkg/info/confluent-schema-registry.md5sums
/var/lib/dpkg/info/confluent-kafka-2.11.postrm
/var/lib/dpkg/info/confluent-common.list
/var/log/confluent
/var/cache/apt/archives/confluent-kafka-connect-s3_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-kafka-2.11_1.1.1-1_all.deb
/var/cache/apt/archives/confluent-kafka-connect-jdbc_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-cli_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-camus_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-ksql_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-common_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-kafka-connect-storage-common_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-kafka-connect-hdfs_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-kafka-connect-elasticsearch_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-platform-oss-2.11_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-schema-registry_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-kafka-rest_4.1.1-1_all.deb
/var/cache/apt/archives/confluent-rest-utils_4.1.1-1_all.deb
/lib/systemd/system/confluent-schema-registry.service
/lib/systemd/system/confluent-kafka-rest.service
/lib/systemd/system/confluent-zookeeper.service
/lib/systemd/system/confluent-kafka-connect.service
/lib/systemd/system/confluent-ksql.service
/lib/systemd/system/confluent-kafka.service
/tmp/confluent.Gv3442C2
/tmp/confluent.current
/etc/confluent-common
/home/idf/Documents/confluent
/home/idf/Documents/confluent/quickstart-demos/images/confluent-logo-300-2.png
/home/idf/Documents/confluent/quickstart-demos/connect-streams-pipeline/src/main/java/io/confluent
/home/idf/Documents/confluent/quickstart-demos/connect-streams-pipeline/src/main/resources/avro/io/confluent
/usr/bin/confluent
/usr/share/java/confluent-common
/usr/share/java/camus/confluent-camus-4.1.1.jar
/usr/share/doc/confluent-schema-registry
/usr/share/doc/confluent-camus
/usr/share/doc/confluent-common
/usr/share/doc/confluent-ksql
/usr/share/doc/confluent-kafka-connect-elasticsearch
/usr/share/doc/confluent-kafka-connect-hdfs
/usr/share/doc/confluent-kafka-connect-jdbc
/usr/share/doc/confluent-kafka-connect-storage-common
/usr/share/doc/confluent-kafka-rest
/usr/share/doc/confluent-platform-oss-2.11
/usr/share/doc/confluent-cli
/usr/share/doc/confluent-kafka-connect-s3
/usr/share/doc/confluent-kafka-2.11
/usr/share/doc/confluent-rest-utils
/usr/share/doc/kafka/confluent-support-metrics-client
/usr/share/confluent-common
idf@idf-vb:~/Documents/confluent$
这是一个合理的猜测,因为里面有东西:
idf@idf-vb:~/Documents/confluent$ ls /usr/share/java/confluent-common
build-tools-4.1.1.jar common-metrics-4.1.1.jar jline-0.9.94.jar netty-3.10.5.Final.jar zkclient-0.10.jar
common-config-4.1.1.jar common-utils-4.1.1.jar log4j-1.2.17.jar slf4j-api-1.7.25.jar zookeeper-3.4.10.jar
idf@idf:~/Documents/confluent$
2条答案
按热度按时间kuhbmx9i1#
我发现,即使有两个选项可以安装confluent,但。
deb/rpm
Package 等,以及.tgz file
,一些示例程序似乎要求您下载。tgz
文件并创建它创建的目录HOME
目录。软件包的安装有误导性,因为很抱歉,没有办法创建一个
HOME
目录。至少现在,我建议下载
.tgz
文件。bsxbgnwa2#
我还使用包安装了confluent,似乎confluent\u home是/(root)
如果不想创建环境变量,可以传递--path/