- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Persistent Storage
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2015 12:41 PM
тАО07-27-2015 12:41 PM
Anyone have an app that uses the persistent storage libraries? I see facilities for encoding and decoding objects but I'm not sure what the code is for actually telling the controller to persistent store something.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2015 07:07 AM
тАО07-30-2015 07:07 AM
Re: Persistent Storage
Ssrirama,
I will get back to you since I will need to research this.
Best Regards,
Carlos
CoE SDN Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2015 06:50 AM
тАО07-31-2015 06:50 AM
Re: Persistent Storage
Sounds good, thanks for looking into this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2015 09:09 AM
тАО07-31-2015 09:09 AM
Re: Persistent Storage
Ssrirama,
This is the information I was able to gathered:
The VAN SDN controller uses Apache Cassandra for persistent storage (cassandra.apache.org). Cassanda uses a commit log method to maintain database integrity тАУ basically data being written is first appended to a commitlog. This log is rapidly flushed from write-behind cache to disk and then the database is updated - similar to SQL Server, Oracle, etc.
You can find a developer walk-through for writing/reading the database at www.planetcassandra.org/try-cassandra/
You can also check the HP VAN SDN Controller 2.5 Administrator Guide pages 22 and 39.
Let me know if the above information is what you were looking for?
Best Regards,
Carlos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2015 11:24 AM
тАО07-31-2015 11:24 AM
Re: Persistent Storage
So clarify this for me, if I want to use to the Cassandra database to store my application data, is the Javadoc for Cassandra independent of the HP SDN SDK? If the libraries are in the HP SDN SDK and the javadoc is in the API Javadoc, can you provide the path to the library? E.g. "import org.apache.x.x"
The video walkthrough you provided was very useful since I haven't worked with Cassandra before, but ultimately I am interested in the code...in the (Java) programmatic interaction with Cassandra. I don't know where to find the methods and classes I need in the API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2015 07:59 AM
тАО08-03-2015 07:59 AM
Re: Persistent Storage
Ideally, I'd like to see some sample code that uses Cassandra for persistent storage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2015 11:10 AM
тАО08-03-2015 11:10 AM
Re: Persistent Storage
Ssrirama,
One of my coleauges provided me with this information:
The VAN SDN Controller uses a Data Access Object (DAO) to interface with Cassandra.
The controller software is packaged in a zip file that includes the developer kit files (hp-sdn-sdk-2.5.15.zip). Inside the SDK zip file, java templates for some persistence layer DAO methods can be found. For example, the java code for the Cassandra QueryManager DAO is in lib/templates/persistence/dao. QueryManager.java is attached for your reference. There is also a dao-api folder in the zip file which defines a basic interface for persistence layer queries (Cassandra database read and write operations).
There is a good explanation of the persistence subsystem beginning on page 79 of the attached pdf (VAN SDN Controller Programmers Guide).
Best Regards,
Carlos
CoE SDN Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2015 07:02 AM
тАО08-14-2015 07:02 AM
Re: Persistent Storage
Does this code seem right in terms of having something stored with Cassandra and then fetched and written to log?
try { CassandraStorable<String, String> storable = new CassandraStorable<String, String>("Some ID"); storable.setColumn(new StringColumn<String>(ColumnName.valueOf("Some Data"), "This is a test")); logger.info("Cassandra info stored was " + storable.getColumn(ColumnName.valueOf("Some Data")).getValue()); } catch (Exception e1) { e1.printStackTrace(); }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2015 10:21 AM
тАО08-14-2015 10:21 AM
Re: Persistent Storage
What concerns me about that previous piece of code is that at compile time, Maven doesn't recognize Cassandra.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project sdn-sbyod: Compilation failure: Compilation failure: [ERROR] /home/ssrirama/sdn-sbyod/sbyod-bl/src/main/java/com/omitted/sbyod/SecureBYODManager.java:[40,50] error: package com.hp.util.persistence.cassandra.entitymgr does not exist [ERROR] /home/ssrirama/sdn-sbyod/sbyod-bl/src/main/java/com/omitted/sbyod/SecureBYODManager.java:[41,57] error: package com.hp.util.persistence.cassandra.entitymgr.column does not exist [ERROR] /home/ssrirama/sdn-sbyod/sbyod-bl/src/main/java/com/omitted/sbyod/SecureBYODManager.java:[42,57] error: package com.hp.util.persistence.cassandra.entitymgr.column does not exist
Why isn't it able to resolve the persistence libraries?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2015 06:10 AM
тАО09-04-2015 06:10 AM
SolutionSsrirama,
It seems the system didn't post my post. But, the information you requested is not something that we in the HP FORUM support. If you need this kind of support you will need to open a case with HP Support and it will be fee based.
Best Regards,
Carlos
CoE SDN team.