![使用数据目录选项安装 Tableau 时出现异常](https://linux22.com/image/1605326/%E4%BD%BF%E7%94%A8%E6%95%B0%E6%8D%AE%E7%9B%AE%E5%BD%95%E9%80%89%E9%A1%B9%E5%AE%89%E8%A3%85%20Tableau%20%E6%97%B6%E5%87%BA%E7%8E%B0%E5%BC%82%E5%B8%B8.png)
您好,我正在基于 Ubuntu Linux 18.04 LTS 使用 Tableau 服务器创建 Azure VM 映像。当我尝试执行./initialize-tsm --accepteula -d /tableau
命令时出现问题。(我能够在不使用 -d 选项的情况下成功初始化 tabelau)。我已确保该/tableau
目录归 tableau 用户和 tableau 组所有。知道为什么会出现此错误吗?
如果您需要任何其他代码/日志,请告诉我,我会提供
感谢您的帮助
初始化期间发生异常
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tableau/temp/jna--1552905086/jna7656128698801184278.tmp: /tableau/temp/jna--1552905086/jna7656128698801184278.tmp: failed to map segment from shared object
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922)
at com.sun.jna.Native.<clinit>(Native.java:190)
at com.tableausoftware.utils.net.NetworkAddressProvider$LibC.<clinit>(NetworkAddressProvider.java:288)
at com.tableausoftware.utils.net.NetworkAddressProvider.getLocalHostname(NetworkAddressProvider.java:81)
at com.tableausoftware.utils.net.NetworkAddressProvider.<init>(NetworkAddressProvider.java:62)
at com.tableausoftware.installer.UserSettingsManager.<init>(UserSettingsManager.java:110)
at com.tableausoftware.installer.AbstractInstaller.constructDependencies(AbstractInstaller.java:122)
at com.tableausoftware.installer.InstallerMain.constructDependencies(InstallerMain.java:81)
at com.tableausoftware.installer.AbstractOperationRunner.run(AbstractOperationRunner.java:164)
at com.tableausoftware.installer.AbstractOperationRunner.runInstance(AbstractOperationRunner.java:116)
at
com.tableausoftware.installer.AbstractOperationRunner.execute(AbstractOperationRunner.java:103)
at com.tableausoftware.installer.AbstractOperationRunner.execute(AbstractOperationRunner.java:57)
at com.tableausoftware.installer.InstallerMain.execute(InstallerMain.java:181)
at com.tableausoftware.installer.InstallerMain.main(InstallerMain.java:188)
ERROR: TSM services returned status 1
我用来配置虚拟机的命令列表
apt-get update
apt-get upgrade -y
apt-get -y install gdebi-core
apt-get install curl -y
curl https://downloads.tableau.com/esdalt/2019.3.0/tableau-server-2019-3-0_amd64.deb --output tableau-server-2019-3-0_amd64.deb
gdebi -n tableau-server-2019-3-0_amd64.deb
curl https://downloads.tableau.com/tssoftware/Tableau-SDK-Linux-64Bit-10-3-25.deb --output Tableau-SDK-Linux-64Bit-10-3-25.deb
gdebi -n Tableau-SDK-Linux-64Bit-10-3-25.deb
bash ~/prepare_vm_disks.sh
useradd --user-group -d /tableau tableau
chown tableau:tableau /tableau
cd /opt/tableau/tableau_server/packages/scripts.20193.19.0913.2225
./initialize-tsm --accepteula -d /tableau
答案1
哦,天哪,我已经解决了这个问题。原来,我为 Tableu 数据目录安装的数据磁盘noexec
在用于磁盘发现和安装的脚本中指定了安装选项。这对我来说真的很尴尬。