DSE Searchノードの起動

DSE Searchの起動時の問題に対処するためのトラブルシューティングのヒント。

暗号化インデックスのサイズが大きいノードで起動が遅い
暗号化インデックスのサイズが大きいノードで起動が遅いという問題は、6.0.0以降、5.1.6以降、および5.0.12以降で解決されています。ただし、パフォーマンスの向上を実現するためにはアクションが必要です。
まず最初にノードをアップグレードし、クラスター内の各ノードのすべての暗号化検索インデックスの完全な再作成を行います。アップグレードが完了したら、ローリング方式でdeleteAll=trueを使用してインデックスを再作成するための時間を十分に取ってください。例を次に示します。
dsetool reload_core keyspace_name.table_name distributed=false reindex=true deleteAll=true 
DSE検索ノードが起動に失敗する
DSE 5.1.11以降およびDSE 6.0.3以降は、必要なTomcatファイルが存在しないと起動しません。
tomcat/confディレクトリーがないと、system.logに次のような警告メッセージが表示されます。
WARN  [localhost-startStop-2] 2018-07-26 11:55:41,104  DirectJDKLog.java:182 - Failed to scan [file:/usr/local/dse/dse-5.1.9/resources/cassandra/lib/apache-cassandra-thrift-3.11.1.2261.jar] from classloader hierarchy
java.io.FileNotFoundException: /usr/local/dse/dse-5.1.9/resources/cassandra/lib/apache-cassandra-thrift-3.11.1.2261.jar (No such file or directory)
        at java.util.zip.ZipFile.open(Native Method) ~[na:1.8.0_181]
        at java.util.zip.ZipFile.<init>(ZipFile.java:225) ~[na:1.8.0_181]
        at java.util.zip.ZipFile.<init>(ZipFile.java:155) ~[na:1.8.0_181]
        at java.util.jar.JarFile.<init>(JarFile.java:166) ~[na:1.8.0_181]
        at java.util.jar.JarFile.<init>(JarFile.java:130) ~[na:1.8.0_181]
        at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) ~[tomcat-util-scan-8.0.47.jar:8.0.47]
        at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49) ~[tomcat-util-scan-8.0.47.jar:8.0.47]
        at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:334) ~[tomcat-util-scan-8.0.47.jar:8.0.47]
        at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:284) ~[tomcat-util-scan-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1898) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1131) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:783) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:131) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:153) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_181]
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1129) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1871) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_181]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_181]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_181]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_181]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]
次に足りないロケールのTomcat JARファイルへの参照が続きます。
WARN  [localhost-startStop-2] 2018-07-26 11:55:41,106  DirectJDKLog.java:182 - Failed to scan [file:/usr/local/dse/dse-5.1.9/resources/spark/lib/derbyLocale_cs.jar] from classloader hierarchy
java.io.FileNotFoundException: /usr/local/dse/dse-5.1.9/resources/spark/lib/derbyLocale_cs.jar (No such file or directory)
        at java.util.zip.ZipFile.open(Native Method) ~[na:1.8.0_181]
        at java.util.zip.ZipFile.<init>(ZipFile.java:225) ~[na:1.8.0_181]
        at java.util.zip.ZipFile.<init>(ZipFile.java:155) ~[na:1.8.0_181]
        at java.util.jar.JarFile.<init>(JarFile.java:166) ~[na:1.8.0_181]
        at java.util.jar.JarFile.<init>(JarFile.java:130) ~[na:1.8.0_181]
        at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) ~[tomcat-util-scan-8.0.47.jar:8.0.47]
        at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49) ~[tomcat-util-scan-8.0.47.jar:8.0.47]
        at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:334) ~[tomcat-util-scan-8.0.47.jar:8.0.47]
        at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:284) ~[tomcat-util-scan-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1898) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1131) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:783) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:131) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:153) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_181]
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1129) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1871) [tomcat-embed-core-8.0.47.jar:8.0.47]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_181]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_181]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_181]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_181]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_181]

解決方法:

  • catalina.propertiesおよびcontext.xmlファイルがTomcat confディレクトリーにあることを確認します。これらのファイルが見つからない場合、DSEは起動しません。
    Tomcat confディレクトリーのデフォルトの場所は、インストールのタイプによって異なります。
    • パッケージ・インストール:/etc/dse/tomcat/conf
    • tarボール・インストール:installation_location/resources/tomcat/conf