blob: bed66bb30a3b6866053ce95b6068c02fd72b494f [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
= Index Reader Utility
Ignite provides a command line script `index-reader.sh|bat` that you can use to check cache data tree in partition files and its consistency with indexes. The script is located under the `/bin/` folder of the installation directory.
[CAUTION]
====
THIS UTILITY MUST BE LAUNCHED ON PERSISTENT STORE WHICH IS NOT UNDER RUNNING GRID!
====
== Run
Run `index-reader.sh|bat` script from `{IGNITE_HOME}/bin` directory:
[cols="1,3,1",opts="header"]
|===
|Parameter | Description | Default Value
| `--dir` | Partition directory where index.bin and (optionally) partition files are located. |
| `--part-cnt` | Total partitions count in cache group. | 0
| `--page-size` | Page size (in bytes). | 4096
| `--page-store-ver` | Page store version. | 2
| `--indexes` | You can specify index tree names that will be processed, separated by comma without spaces, other index trees will be skipped. | `[]`
| `--check-parts` | Check cache data tree in partition files and its consistency with indexes. | `false`
|===
== Usage
[source, shell]
----
./index-reader.sh|bat --dir [--part-cnt] [--page-size] [--page-store-ver] [--indexes] [--check-parts]
----