Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Compare configuration files before and after upgrade
Copy Markdown
Open in ChatGPT
Open in Claude
Compare configuration files before and after upgrade
Script to compare the same files in 2 directories.
List of files that need to be compared needs to passed as a separate file
The script takes input from the user for the current directory, backup directory and file location containing file paths
The file formats supported by the script are .json, .js, and conf files with format (key=value) and (key value)
Download the file
xxxxxxxxxxwget https://cvs-iwx.s3.amazonaws.com/scripts/compare.pyRun the compare.py
xxxxxxxxxxpython compare.pyExample for JSON file containing the list of files and locations that have to be compared
xxxxxxxxxx{ "conf.properties": "conf/conf.properties", "dataproc_defaults.json": "conf/dataproc_defaults.json", "airflow.cfg": "orchestrator-engine/airflow.cfg", "ecosystem.config.js": "platform/rest-api-service/ecosystem.config.js", ".env": "platform/rest-api-service/.env", "exporter.conf": "resources/nginx-portable/conf/infoworks/extras/exporter.conf", "config-dev.json": "platform/conf/config-dev.json", "nginx.conf": "resources/nginx-portable/conf/nginx.conf", "platform.conf.template": "resources/nginx-portable/conf/infoworks/platform.conf.template", "pg_hba.conf": "resources/postgres/pgsql/data/pg_hba.conf", "dt_spark_defaults.conf": "conf/dt_spark_defaults.conf"}Example output
x
Enter current installation directory [# Example : /opt/infoworks] : /opt/infoworksEnter backup directory [# Example : /opt/infoworks_5306] : /opt/infoworks_5306Enter file path for JSON file containing file paths: /opt/infoworks/scripts/file_path.json Value mismatch for key 'default_driver_xmx_mb' in conf/conf.properties: '2048' in current dir and '512' in backup Value mismatch for key 'ingestion_port' in conf/conf.properties: '3025' in current dir and '3026' in backup Key 'example' is present in conf/conf.properties of current dir but not present in backup Key 'demo' is present in backup conf/conf.properties but not present in current dirList length mismatch for key 'init_scripts' in dataproc_defaults.json: 3 in current dir and 1 in backup Value mismatch for key 'imageVersion' in dataproc_defaults.json: '2.0.53-ubuntu18' in current dir and '1.4-ubuntu18' in backup Value mismatch for key 'parallelism ' in orchestrator-engine/airflow.cfg: ' 2' in current dir and ' 15' in backup Value mismatch for key 'worker_concurrency ' in orchestrator-engine/airflow.cfg: ' 2' in current dir and ' 15' in backup Value mismatch for key 'job_heartbeat_sec ' in orchestrator-engine/airflow.cfg: ' 2' in current dir and ' 3' in backup Value mismatch for key 'min_file_process_interval ' in orchestrator-engine/airflow.cfg: ' 5' in current dir and ' 900' in backup Value mismatch for key 'instances:' in platform/rest-api-service/ecosystem.config.js: '4,' in current dir and '2,' in backup Value mismatch for key 'max_memory_restart:' in platform/rest-api-service/ecosystem.config.js: ''2G',' in current dir and ''1G',' in backup Value mismatch for key 'TIMEOUT' in platform/rest-api-service/.env: '100000' in current dir and '20000' in backupAuthor: Anirudh Chekuri
Date Published: 04/12/2023
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Count mismatch due to hive fetching data from metastoreFor more details, refer to our Knowledge Base and Best Practices!
For help, contact our support team!
© UNIPHORE TECHNOLOGIES 2025 | Confidential
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
On This Page
Compare configuration files before and after upgradeCompare configuration files before and after upgradeScript to compare the same files in 2 directories.List of files that need to be compared needs to passed as a separate fileThe script takes input from the user for the current directory, backup directory and file location containing file pathsThe file formats supported by the script are .json, .js, and conf files with format (key=value) and (key value)Download the fileRun the compare.pyExample for JSON file containing the list of files and locations that have to be compared