-
Install Python.
- Download & Install latest version of python from here
-
Update the cassandra_config.ini file.
IP_ADDRESS = <<IP>> PORT = <<Port>> USER = <<User>> PWD = <<Password>> KEY_SPACE = <<KeySpace>>- Encode your password using password_encode.py
- Open command prompt and go to the project directory
- Run python password_encoder.py
Enter the password to encode: password1234 Your encoded password - b'cGFzc3dvcmQxMjM0'
- Copy the encoded password and add it in cassandra_config.ini
Example: (Strings without quote)
IP_ADDRESS = 255.255.0.0 PORT = 9042 USER = username PWD = cGFzc3dvcmQxMjM0 KEY_SPACE = keyspace -
Install required libraries from requirements.txt file.
- Open command prompt and go to project directory.
- Execute the following command
pip install -r requirements.txt -
Run the cassandra_data_pull.py file.
python cassandra_data_pull.py
- Script will create data and log folder in the project directory.
- data - all parquet files
- log - log files
- last 10 log files only available (configurable in logging.conf file)