Skip to content

The Ararajuba script aims to identify whether Optimized Row Columnar files in the Hadoop Distributed File System are corrupted, for this purpose it uses the count method and analyzes the difference in schemas in the tables.

License

Notifications You must be signed in to change notification settings

brunoleomenezes/ararajuba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ararajuba


The Ararajuba script aims to identify whether Optimized Row Columnar files in the Hadoop Distributed File System are corrupted, for this purpose it uses the count method and analyzes the difference in schemas in the tables. Developed by Bruno Menezes.


Installation:

  1. Go to the repository you want to clone on GitHub.
  2. Click the "Clone" button in the top-right corner of the repository page.
  3. Copy the URL displayed in the "Clone with HTTPS" section.
  4. Open a terminal window on your computer.
  5. Navigate to the directory where you want to clone the repository.
  6. Type the following command, replacing "URL" with the URL you copied in step 3: git clone URL.
  7. Press "Enter". The repository will be cloned to your computer.

Execution examples:

  1. sh ararajuba.sh -schema hdfs://path/database/table/.
  2. sh ararajuba.sh -count hdfs://path/database/table/ <integer>.

Analysis:

sh ararajuba.sh -schema hdfs://path/database/table/:

  1. The output.txt file contains some information about the files that were researched.

  2. The file output_errors.txt stores the rows of different table schemas. If the output_errors.txt file is not empty, it means that there are differences and the message "Different patterns found, see the output_errors.txt file for more details" will be displayed. Otherwise, the message "All patterns are the same" will be displayed.

sh ararajuba.sh -count hdfs://path/database/table/ <integer>:

  1. In the file output_count_errors.txt the tables that gave error in select count (integer).
  2. Integer (number of lines of the select count command) must be an int number.

Important:

It is good practice to remove or move the output.txt, output_erros.txt and output_count_errors.txt files with each new search. Examples:

  1. rm output.txt.
  2. mv output_erros.txt path.

MIT License

Copyright (c) 2023 Bruno Menezes

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

The Ararajuba script aims to identify whether Optimized Row Columnar files in the Hadoop Distributed File System are corrupted, for this purpose it uses the count method and analyzes the difference in schemas in the tables.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages