无法确定DSE_ENV [英] DSE_ENV could not be determined

查看:435
本文介绍了无法确定DSE_ENV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Linux Ubuntu机器上设置DataStax Enterprise。 OpsCenter和DevCenter工作正常。我能写到数据库等,没有问题。



但许多演示和命令行工具返回以下错误:


DSE_ENV无法确定


这种情况发生的一个例子是:


nodetool status




我找到一个名为DSE_ENV.sh的档案,例如DSE_HOME。但是当我 echo $ DSE_HOME 例如变量没有设置。我不知道这个文件是否可能永远不会被调用或导致问题的原因。



我发现这篇文章是特定于dse服务不开始, (与我不同)
https://support.datastax.com/hc/en-us/articles/204226189-DSE-fails-to- start-with-error-DSE-ENV-could-not-be-determined



我试过运行它提到的权限命令,但没有运气。

解决方案

通过聊天与KOH合作。



DR:我们不得不添加

  export DSE_ENV = / usr / share / dse / bin / dse-env.sh $ b $ 


$

$ b $ b

由于某种原因,这似乎发生在DSE GUI安装程序中。我会进一步看看这个更新。


I setup DataStax Enterprise on a Linux Ubuntu machine. OpsCenter and DevCenter are working fine. I able to write to the database, etc. with no issues.

However many of the demos and command line tools return the following error:

DSE_ENV could not be determined

One such example of when this occurs is:

nodetool status

I found a file called DSE_ENV.sh which appears to set some environment variables such as DSE_HOME. But when I echo $DSE_HOME for example the variable is not set. I don't know if maybe this file is never getting called or what is causing the issue.

I found this article which is specific to the the dse service not starting, which is not the case with me: https://support.datastax.com/hc/en-us/articles/204226189-DSE-fails-to-start-with-error-DSE-ENV-could-not-be-determined

I tried however to run the permissions commands it mentions but no luck.

解决方案

Worked with KOH on this over chat.

TL;DR: we had to add

export DSE_ENV=/usr/share/dse/bin/dse-env.sh

to his ~/.bashrc because it wasn't getting picked up.

For some reason this seems to be happening in the DSE GUI installer. I will look further into this and update.

这篇关于无法确定DSE_ENV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆