Git Product home page Git Product logo

brunoleomenezes / ararajuba Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 232 KB

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: MIT License

Shell 100.00%
bash bash-script hdfs hdfs-dfs hive linux linux-shell orc shell shell-script

ararajuba's Introduction

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.

ararajuba's People

Contributors

brunoleomenezes avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.