Skip to content

Commit

Permalink
Configuration rename branch (#2)
Browse files Browse the repository at this point in the history
Minor changes in renaming conf.py in connectorconf.py to avoid readthedocs.org conflicts
  • Loading branch information
emiliocimino committed Jun 9, 2022
1 parent 49cb9e1 commit 8bca53a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN unzip main.zip
RUN mkdir ../PySpark/

RUN mv fiware-orion-pyspark-connector-main/receiver/connector_lib.py ../PySpark/
RUN mv fiware-orion-pyspark-connector-main/receiver/conf.py ../PySpark/
RUN mv fiware-orion-pyspark-connector-main/receiver/connectorconf.py ../PySpark/
RUN mv fiware-orion-pyspark-connector-main/replier/replier_lib.py ../PySpark/
RUN mv fiware-orion-pyspark-connector-main/replier/replyconf.py ../PySpark/

Expand Down
2 changes: 1 addition & 1 deletion docs/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Once installed the requirements, it is possible to use the connector by following these steps:
- Load files on the same machine running the spark job
- Modify the `conf.py` file in the repository to set up the IP address and port for both the HTTP Server and the multi-threading socket.
- Modify the `connectorconf.py` file in the repository to set up the IP address and port for both the HTTP Server and the multi-threading socket.
- If your PySpark job is running in a docker container, make sure that both the server and multi-thread socket *IP addresses* are the same of that container
- **Don't use the same (address, port) couple for the HTPP Server and the Sockets**
- Currently, the user has to make sure that the chosen ports are free. In future versions, automatic port setting is evaluated for the multi-thread socket.
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ pages:
- "Home - Getting Started": "index.md"
- "User & Programmers Manual": "quick_start.md"
- "Docker": "docker.md"
- "Roadmap": "roadmap.md"
- "Roadmap": "roadmap.md"
2 changes: 1 addition & 1 deletion receiver/connector_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import time
from datetime import datetime

import conf as connectorconf
import connectorconf

'''
from py4j.java_gateway import java_import, is_instance_of
Expand Down
1 change: 0 additions & 1 deletion receiver/conf.py → receiver/connectorconf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#HTTPADDRESS = '192.168.49.1'
HTTPADDRESS = "10.0.2.15"
HTTPPORT = 8061
SOCKETADDRESS = 'localhost'
Expand Down

0 comments on commit 8bca53a

Please sign in to comment.