Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nxdblmbackendpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Alexander Perez
nxdblmbackendpython
Commits
208680a8
Commit
208680a8
authored
5 years ago
by
Quentin Codelupi
Browse files
Options
Downloads
Patches
Plain Diff
[update] README with some installation guide
parent
c4cd4e26
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+50
-0
50 additions, 0 deletions
README.md
with
50 additions
and
0 deletions
README.md
+
50
−
0
View file @
208680a8
...
...
@@ -6,6 +6,56 @@ In order to be used in other application.
## Installation
For now, it only work on linux OS and Windows Professional,
and not tested on MacOS.
In order to run it, you have to Download the CERN's Spark bundle
and set up a working CERN's NXCALS environment.
See on
<a
href=
"nxcals-docs.web.cern.ch"
>
NXCALS Documentation
</a>
.
You need then to export 2 environment variables for Spark & Python.
For linux (Ubuntu)
```
bash
export
SPARK_HOME
=
<location_of_the_bundle>/spark-<version>-bin-hadoop<version>
export
PYTHONPATH
=
$SPARK_HOME
/nxcals-python3-env/lib/python3.6/site-packages
```
For windows into shell with admin rights
```
shell script
setx SPARK_HOME <location_of_the_bundle>/spark-<version>-bin-hadoop<version>
setx PYTHON_PATH %SPARK_HOME%/nxcals-python3-env/lib/python3.6/site-packages
```
Then install pyspark packages on python if not already done.
```
shell script
pip install pyspark
```
Maybe you would have to replace the nxcals-jars directory with the
one you can find into the bundle at
`<bundle_path>/nxcals-jars`
and also
the nxcals-hdoop-pro-config
<version>
.jar that you can find at
`<bundle_path>/jars/nxcals-hadoop-pro-config-<version>.jar`
.
Know that all the links and directory path are up to date at the time of writing.
It may have been some updates since.
After that you need to create a 'pyconf.py' file in order to create
mysql configuration. The template is :
```
python
mysql
=
{
'
host
'
:
''
,
'
port
'
:
''
,
'
user
'
:
''
,
'
passwd
'
:
''
,
'
database
'
:
''
,
}
```
You'll need to ask the databases info and access in order to complete this
configuration file.
You can ask this info by creating an issue on this repo gitLab or by sending
a mail to a manager of this project with your name, section and why you want
to use the project.
## Usage
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment