cloudxtreme / cassandra-fs Goto Github PK
View Code? Open in Web Editor NEWThis project forked from zjffdu/cassandra-fs
S3 like FileSystem based on Cassandra
Home Page: http://code.google.com/p/cassandra-fs/
This project forked from zjffdu/cassandra-fs
S3 like FileSystem based on Cassandra
Home Page: http://code.google.com/p/cassandra-fs/
Cassandra-fs: S3 like file system implemented based on Cassandra By [email protected], [email protected], [email protected] Project description =================== Cassandra-fs is a S3 like distributed file system implemented based on Cassandra. Cassandra is a distributed storage system with column-family data model. We build a file system data model upon Cassandra. Requirements ============ * Java >= 1.6 * Ant >=1.7 Getting started =============== Install and Run Cassandra-fs in local mode ========================================== *** Install it on windows 1. open cmd, go to directory %CASSANDA_HOME%, execute command : "ant jar" to build the cassandra-fs. 2. similar to step 1 and execute the following command to run the cassandra in local: "bin\cassandra.bat" to start cassandra on windows 3. similar to step 1, execute the following command : "bin\cassandra-fs-cli.bat" to start cassandra-fs-cli, then you can play with a lot of file system-based commands, such as ls,mkdir and etc. *** Install it on linux 1. Execute the following command: sudo mkdir -p /var/log/cassandr sudo chown -R `whoami` /var/log/cassandra sudo mkdir -p /var/lib/cassandra sudo chown -R `whoami` /var/lib/cassandra 2. open shell, go to directory $CASSANDA_HOME, execute command : "ant jar" to build the cassandra-fs. 3. similar to step 1 and execute the following command to run cassandra in local: "bin/cassandra" to start cassandra on linux 4. similar to step 1, execute the following command : "bin/cassandra-fs-cli" to start cassandra-fs-cli, then you can play with a lot of file system-based commands, such as ls,mkdir and etc. Install and Run Cassandra-fs in cluster mode (linux) ==================================================== 1. Start the cassandra cluster 2. edit file conf/client-conf.properties, modify property cassandra.client.hosts, the default is localhost:9160, change it to your cassandra cluster, you can specify multiple machines by using comma to split the machine address, e.g. cassandra.client.hosts=machine_1:9160,machine_2:9160,machine_3:9160 3. open shell, go to directory $CASSANDA_HOME, execute command : "ant jar" to build the cassandra-fs. 4. execute the following command : "bin/cassandra-fs-cli" to start cassandra-fs-cli, then you can play with a lot of file system-based commands, such as ls,mkdir and etc. Commands Cassandra-fs supports: ============================== * ls <folder> | <file> // list detail information of the files under the <folder> or the specified <file> * cd <folder> // change the current working directory to <folder> * pwd // print the current working directory on cassandra-fs * copyToLocal <source> <dest> // copy file or folder from cassandra-fs to local * copyFromLocal <source> <dest> // copy file or folder from local to cassandra-fs * touch <file> // create empty file * rm <file | folder> // remove the file or folder on cassandra-fs, the folder must be an empty folder * rmr <file | folder> // force remove the folder or file no matter the folder is empty or not * newfile <file> <content> // make a new file on cassandra-fs with the contents of the second argument * cat <file>... // print the file content in console * copyFromHDFS <source> <dest> // copy file or folder from HDFS to cassandra-fs * copyToHDFS <source> <dest> // copy file or folder from Cassandra-fs to HDFS * mkdir <folder> // make directory on cassandra-fs including the parent directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.