blob: 87c237c1e9521d6ea44427ad54785b1c862ce14d [file] [log] [blame]
{"version":3,"sources":["/home/madhan/Apache/git/atlas/docs/target/src/documents/Tools/AtlasRepairIndex.md","/home/madhan/Apache/git/atlas/docs/target/theme/styles/styled-colors.js"],"names":["layoutProps","MDXContent","components","props","mdxType","wrapLines","language","style","theme","parentName","isMDXComponent","dark","hljs","color"],"mappings":"ilBAWMA,EAAc,GAIL,SAASC,EAAW,GAG/B,IAFFC,EAAU,EAAVA,WACGC,EAAK,iBAER,OAAO,cALS,UAKC,iBAAKH,EAAiBG,EAAK,CAAED,WAAYA,EAAYE,QAAQ,cAE5E,oBACE,GAAM,sBAAoB,sBAE5B,oBACE,GAAM,gBAAc,gBAEtB,sKACA,oBACE,GAAM,sBAAoB,sBAE5B,2WACA,oBACE,GAAM,YAAU,YAElB,yIACA,oBACE,GAAM,yBAAuB,yBAE/B,oBACE,GAAM,oBAAkB,oBAE1B,wJACA,cAAC,IAAiB,CAACC,WAAW,EAAMC,SAAS,aAAaC,MAAOC,IAAYJ,QAAQ,qBAAmB,sCAGxG,yNACA,oBACE,GAAM,WAAS,WAEjB,oSACA,oBACE,GAAM,qBAAmB,qBAE3B,6GACA,cAAC,IAAiB,CAACC,WAAW,EAAMC,SAAS,aAAaC,MAAOC,IAAYJ,QAAQ,qBAAmB,kDAGxG,mCACA,cAAC,IAAiB,CAACC,WAAW,EAAMC,SAAS,aAAaC,MAAOC,IAAYJ,QAAQ,qBAAmB,8EAGxG,8KACA,oFACA,cAAC,IAAiB,CAACC,WAAW,EAAMC,SAAS,aAAaC,MAAOC,IAAYJ,QAAQ,qBAAmB,8EAGxG,wBACE,oBAAIK,WAAW,MAAI,2EACnB,oBAAIA,WAAW,MAAI,8DACnB,oBAAIA,WAAW,MAAI,mEAErB,mCACA,cAAC,IAAiB,CAACJ,WAAW,EAAMC,SAAS,aAAaC,MAAOC,IAAYJ,QAAQ,qBAAmB,sGAIxG,mGAEA,wBACE,oBAAIK,WAAW,MAAI,mDACjB,cAAC,IAAiB,CAACJ,WAAW,EAAMC,SAAS,aAAaC,MAAOC,IAAYJ,QAAQ,qBAAmB,sGAK1G,oBAAIK,WAAW,MAAI,2EAErB,qKACA,wBACE,oBAAIA,WAAW,MAAI,6CACnB,oBAAIA,WAAW,MAAI,iDACnB,oBAAIA,WAAW,MAAI,8DAErB,mCACA,cAAC,IAAiB,CAACJ,WAAW,EAAMC,SAAS,aAAaC,MAAOC,IAAYJ,QAAQ,qBAAmB,8JAK3G,6LAEDH,EAAWS,gBAAiB,G,+DCtG5B,iFAqBAC,IAAKC,KAAKC,MAAQ,UACHF,MAAI","file":"static/js/documents-tools-atlas-repair-index.33825bd7.js","sourcesContent":["\nimport React from 'react'\nimport { mdx } from '@mdx-js/react'\n\n/* @jsxRuntime classic */\n/* @jsx mdx */\nimport themen from 'theme/styles/styled-colors';\nimport * as theme from 'react-syntax-highlighter/dist/esm/styles/hljs';\nimport SyntaxHighlighter from 'react-syntax-highlighter';\n\n\nconst layoutProps = {\n \n};\nconst MDXLayout = \"wrapper\"\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n\n <h1 {...{\n \"id\": \"atlas-repair-index\"\n }}>{`Atlas Repair Index`}</h1>\n <h2 {...{\n \"id\": \"introduction\"\n }}>{`Introduction`}</h2>\n <p>{`The document describes the use of the Atlas Index Repair Utility for JanusGraph, with HBase as back-end data store and Solr as index store.`}</p>\n <h4 {...{\n \"id\": \"need-for-this-tool\"\n }}>{`Need for this Tool`}</h4>\n <p>{`In rare, cases it is possible that during entity creation, the entity is stored in the data store, but the corresponding indexes are not created in Solr. Since Atlas relies heavily on Solr in the operation of its Basic Search, this will result in entity not being returned by a search. Note that Advanced Search is not affected by this.`}</p>\n <h4 {...{\n \"id\": \"location\"\n }}>{`Location`}</h4>\n <p>{`The tool is part of the normal Atlas installation, it is located under the tools/atlas-index-repair directory.`}</p>\n <h4 {...{\n \"id\": \"steps-to-execute-tool\"\n }}>{`Steps to Execute Tool`}</h4>\n <h5 {...{\n \"id\": \"complete-restore\"\n }}>{`Complete Restore`}</h5>\n <p>{`If the user needs to restore all the indexes, this can be accomplished by executing the tool with no command-line parameters:`}</p>\n <SyntaxHighlighter wrapLines={true} language=\"powershell\" style={theme.dark} mdxType=\"SyntaxHighlighter\">\natlas-index-repair/repair_index.py\n </SyntaxHighlighter>\n <p>{`This will result in vertex_index, edge_index and fulltext_index to be re-built completely. It is recommended that existing contents of these indexes be deleted before executing this restore.`}</p>\n <h6 {...{\n \"id\": \"caveats\"\n }}>{`Caveats`}</h6>\n <p>{`Note that the full index repair is a time-consuming process. Depending on the size of data the process may take days to complete. During the restore process the Basic Search functionality will not be available. Be sure to allocate sufficient time for this activity.`}</p>\n <h5 {...{\n \"id\": \"selective-restore\"\n }}>{`Selective Restore`}</h5>\n <p>{`To perform selective restore for an Atlas entity, specify the GUID of that entity:`}</p>\n <SyntaxHighlighter wrapLines={true} language=\"powershell\" style={theme.dark} mdxType=\"SyntaxHighlighter\">\n {`atlas-index-repair/repair_index.py [-g \\<guid>]`}\n </SyntaxHighlighter>\n <p>{`Example:`}</p>\n <SyntaxHighlighter wrapLines={true} language=\"powershell\" style={theme.dark} mdxType=\"SyntaxHighlighter\">\natlas-index-repair/repair_index.py -g 13d77457-2a45-4e92-ad53-a172c7cb70a5\n </SyntaxHighlighter>\n <p>{`Note that Atlas will use REST APIs to fetch the entity, which will need correct authentication mechanism to be specified based on the installation.`}</p>\n <p>{`For an Atlas installation with username and password use:`}</p>\n <SyntaxHighlighter wrapLines={true} language=\"powershell\" style={theme.dark} mdxType=\"SyntaxHighlighter\">\n {`atlas-index-repair/repair_index.py [-g \\<guid>] [-u \\<user>] [-p \\<password>]`}\n </SyntaxHighlighter>\n <ul>\n <li parentName=\"ul\">{`guid: `}{`[optional]`}{` specify guid for which indexes are to be updated`}</li>\n <li parentName=\"ul\">{`user: `}{`[optional]`}{` specify username for atlas instance`}</li>\n <li parentName=\"ul\">{`password: `}{`[optional]`}{` specify password for atlas instance`}</li>\n </ul>\n <p>{`Example:`}</p>\n <SyntaxHighlighter wrapLines={true} language=\"powershell\" style={theme.dark} mdxType=\"SyntaxHighlighter\">\n {`atlas-index-repair/repair_index.py -u admin -p admin123 -g\n\t13d77457-2a45-4e92-ad53-a172c7cb70a5`}\n </SyntaxHighlighter>\n <p>{`For Atlas installation that uses kerberos as authentication mode,\nuse: `}</p>\n <ul>\n <li parentName=\"ul\">{`Add below to DEFAULT_JVM_OPTS in repair_index.py`}\n <SyntaxHighlighter wrapLines={true} language=\"powershell\" style={theme.dark} mdxType=\"SyntaxHighlighter\">\n {`-Djavax.security.auth.useSubjectCredsOnly=false -Djava.security.auth.login.config=atlas_jaas.conf`}\n </SyntaxHighlighter>\n \n </li>\n <li parentName=\"ul\">{`kinit -kt /etc/security/keytabs/atlas.service.keytab atlas/fqdn@DOMAIN`}</li>\n </ul>\n <p>{`For Atlas installation that uses SSL, we need to make sure to add Solr cert or RootCA certificate, use below atlas-application properties:`}</p>\n <ul>\n <li parentName=\"ul\">{`keystore.file {path to keystore jks file}`}</li>\n <li parentName=\"ul\">{`truststore.file {path to truststore jks file}`}</li>\n <li parentName=\"ul\">{`cert.stores.credential.provider.path {path to jceks file}`}</li>\n </ul>\n <p>{`Example:`}</p>\n <SyntaxHighlighter wrapLines={true} language=\"powershell\" style={theme.dark} mdxType=\"SyntaxHighlighter\">\n {`kinit -kt /etc/security/keytabs/atlas.service.keytab atlas/fqdn@EXAMPLE.com\n\tatlas-index-repair/repair_index.py -g 13d77457-2a45-4e92-ad53-a172c7cb70a5`}\n </SyntaxHighlighter>\n </MDXLayout>;\n}\n;\nMDXContent.isMDXComponent = true;","/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { dark } from \"react-syntax-highlighter/dist/esm/styles/hljs\";\n\n//dark[\"powershell\"][\"color\"] = \"#37bb9b\";\ndark.hljs.color = \"#37bb9b\";\nexport default dark;"],"sourceRoot":""}