SIESTA: A Scalable Infrastructure of Sequential Pattern Analysis (Query)
496
The SIESTA Query Processor is a component of the SIESTA (Scalable Infrastructure for Sequential Pattern Analysis) project. It is designed to efficiently handle pattern queries using indices built by the Preprocess Component. This application supports functionalities such as Pattern Detection, Pattern Continuation, and Basic Statistics, with additional methods like Signature and Set-Containment.
When running the SIESTA Query Processor via Docker, several environment variables need to be set. These variables configure the application's connection to databases and other critical settings:
master.uri: Specifies the URI for the Spark master. Use local[4] for four threads or local[*] to use all available threads.
database: Determines the database type. Options include cassandra-rdd for Cassandra or s3 for S3.
For S3 (MinIO) Configuration:
s3.endpoint: The endpoint URL for the S3 storage (e.g., http://minio:9000).s3.user: The username for accessing the S3 storage.s3.key: The password or key for accessing the S3 storage.s3.timeout: The timeout setting for S3 operations in milliseconds.For Cassandra Configuration:
cassandra.max_requests_per_local_connection: Maximum requests per local connection.cassandra.max_requests_per_remote_connection: Maximum requests per remote connection.cassandra.connections_per_host: Number of connections per host.cassandra.max_queue_size: Maximum queue size for requests.cassandra.connection_timeout: Connection timeout in milliseconds.cassandra.read_timeout: Read timeout in milliseconds.spring.data.cassandra.contact-points: Contact points for connecting to Cassandra.spring.data.cassandra.port: Port for connecting to Cassandra.spring.data.cassandra.user: Username for Cassandra authentication.spring.data.cassandra.password: Password for Cassandra authentication.server.port: Port on which the application will run (default is 8090).
To cache dependencies and improve build times, the following volume can be mounted to avoid re-downloading the dependencies every time the image is build:
./build:/root/.m2: Maps the local ./build directory to the Maven repository inside the container.Expose the application's port to the host:
8080:8080: Maps port 8080 on the container to port 8080 on the host.For comprehensive documentation and testing of the endpoints, Swagger is integrated and can be accessed at the /swagger-ui/ endpoint. This interface provides a complete list of available endpoints and allows users to test them easily.
Content type
Image
Digest
sha256:af1d5a49f…
Size
1.4 GB
Last updated
over 1 year ago
docker pull mavroudo/siesta-query