Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.
/ gca-db Public archive

SAP HANA HDI project with ACLED data and Predicitive Analysis Methods

Notifications You must be signed in to change notification settings

openNS2/gca-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Global Conflict Analysis Hana Database Module

This application will deploy a SAP HANA database on SAP Cloud Platform with Predictive Analytics capability with data from the Armed Conflict Location and Event Data project (ACLED) as well as the Fragile States Index

Requirements

  • A currently deployed enterprise instance of SAP HANA

cockpit1.png

Deploy

  • Make sure the cli is connected to your space with this script
./cf-login.sh
  • Run the deployment script
./cf-db.sh

Bugfix workaround

  • Currently there is a memory allocation error when attempting to load all the data at once

  • The fix is to not load the ACLED_NOTES_ALL table by default. db/src/data/acled_notes_all.hdbtabledata has this option set

"no_data_import": true
  • After running cf-db.sh, login into SAP Web IDE Full-Stack and navigate to database explorer.

  • Connect to the gca-db database, select the ACLED_NOTES_ALL table, right-click and select import data

  • Locally unzip zip/acled_notes_all.zip to a csv

  • Upload acled_notes_all.csv

    • Uncheck has header
    • Select the ACLED_NOTES_ALL table
    • Map COLUMN_1 to data_id and COLUMN_2 to tidy_notes
  • Confirm and run the import

Access the database

  • Get the access configuration from the service keys section of the instance in the cockpit or with the cli with the following command
cf service-key gca-db gca-db-key

cockpit2.png

About

SAP HANA HDI project with ACLED data and Predicitive Analysis Methods

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published