将ubuntu升级到19.04后,无法运行apache ignite

时间:2019-10-15 05:27:14

标签: java ubuntu-18.04 ignite

我很新来尝试apign并尝试探索它以查看是否可以像在内存数据网格中一样使用它。

我在ubuntu 64位(v 18.04)上安装了apache ignite,并按照ignite网站上的说明安装了debian软件包。所以运行良好。后来我得到了将ubuntu升级到19.04的通知。之后,每当我尝试运行点燃时:

 bin/ignite.sh config/default-config.xml

我收到此错误。

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ignite.internal.util.GridUnsafe$2 (file:/usr/lib/apache-ignite/ignite-core-2.7.6.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of org.apache.ignite.internal.util.GridUnsafe$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
class org.apache.ignite.IgniteException: Cannot write to work directory: /usr/share/apache-ignite/work
    at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1029)
    at org.apache.ignite.Ignition.start(Ignition.java:351)
    at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:301)
Caused by: class org.apache.ignite.IgniteCheckedException: Cannot write to work directory: /usr/share/apache-ignite/work
    at org.apache.ignite.internal.util.IgniteUtils.workDirectory(IgniteUtils.java:9393)
    at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.initializeConfiguration(IgnitionEx.java:2178)
    at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1756)
    at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1730)
    at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1158)
    at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1076)
    at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:962)
    at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:861)
    at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:731)
    at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:700)
    at org.apache.ignite.Ignition.start(Ignition.java:348)
    ... 1 more
Failed to start grid: Cannot write to work directory: /usr/share/apache-ignite/work

请记住,我不是linux的专业用户,这是我第一次使用ignite,因此是否缺少任何内容?

2 个答案:

答案 0 :(得分:3)

您使用什么配置?

对于打包的Ignite,您应该使用将ignite工作目录设置为/var/lib/apache-ignite的配置。

您应该使用类似于

的命令开始打包Apache Ignite。
sudo service apache-ignite@default-config.xml start

,而不是您的用户。

答案 1 :(得分:1)

看起来像尝试启动点火的用户没有对工作目录的写入权限。只需设置正确的权限即可。您可以参考https://www.lifewire.com/uses-of-command-chmod-2201064之类的任何chmod指南来检查如何完成此操作。