DataStax Enterprise 5.0 Analytics includes integration with Apache Spark. Starting with this version Hadoop is deprecated for use with DataStax Enterprise. DSE Hadoop and BYOH (Bring Your Own Hadoop) are also
deprecated.

The Portfolio Manager demo runs an application that is based on a financial use case. You run scripts that create
a portfolio of stocks.

Portfolio Manager demo using Spark

The Portfolio Manager demo runs an application that is based on a financial use case.
You run scripts that create a portfolio of stocks.

The Portfolio Manager demo runs an application that is based on a financial use case.
You run scripts that create a portfolio of stocks. On the Cassandra OLTP (online
transaction processing) side, each portfolio contains a list of stocks, the number
of shares purchased, and the purchase price. The demo's pricer utility simulates
real-time stock data. Each portfolio gets updated based on its overall value and the
percentage of gain or loss compared to the purchase price. The utility also
generates 100 days of historical market data (the end-of-day price) for each stock.
On the DSE OLAP (online analytical processing) side, a Spark Scala job calculates
the greatest historical 10 day loss period for each portfolio, which is an indicator
of the risk associated with a portfolio. This information is then fed back into the
real-time application to allow customers to better gauge their potential losses.

Procedure

To run the demo:

Note: DataStax Demos do not work with either
LDAP or internal authorization (username/password) enabled.

Install a single Demo node using the DataStax Installer in GUI or Text mode with the following
settings:

Install Options page - Default
Interface: 127.0.0.1 (You must use this IP for the
demo.)

Node Setup page - Node Type:
Analytics

Analytic Node Setup page - Analytics
Type: Spark + Integrated Hadoop

Start DataStax Enterprise if you haven't already:

Installer-Services and Package installations:

$ sudo service dse start

Installer-No Services and Tarball installations:

$ install_location/bin/dse cassandra -k ## Starts node in Spark mode

The
default install_location is
/usr/share/dse.

Go to the Portfolio Manager demo directory.

The default location of the Portfolio Manager demo
depends on the type of installation:

Installer-Services and Package
installations

/usr/share/dse/demos/portfolio_manager

Installer-No Services and Tarball
installations

install_location/demos/portfolio_manager

Run the bin/pricer utility to generate stock data for the application:

DataStax Enterprise 5.0 Analytics includes integration with Apache Spark. Starting with this version Hadoop is deprecated for use with DataStax Enterprise. DSE Hadoop and BYOH (Bring Your Own Hadoop) are also
deprecated.

Use DSE Analytics to analyze huge databases. DSE Analytics includes integration with Apache Spark. BYOH (bring
your own Hadoop) and DSE Hadoop are deprecated for use with DataStax Enterprise and will be removed in DataStax
Enterprise 5.1.

You can run analytics on Cassandra data using Hadoop that is integrated into DataStax Enterprise. The Hadoop component
in DataStax Enterprise enables analytics to be run across the DataStax Enterprise distributed, shared-nothing architecture.
Hadoop is deprecated for use with DataStax Enterprise. DSE Hadoop and BYOH (Bring Your Own Hadoop) are also
deprecated.

DataStax is a registered trademark of DataStax, Inc. and its subsidiaries in the United States and/or other countries.

Apache Cassandra, Apache, Tomcat, Lucene, Solr, Hadoop, Spark, TinkerPop, and Cassandra are trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.