All Projects → chenxingxing6 → disk

chenxingxing6 / disk

Licence: other
基于hadoop+hbase+springboot实现分布式网盘系统

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to disk

Szt Bigdata
深圳地铁大数据客流分析系统🚇🚄🌟
Stars: ✭ 826 (+1458.49%)
Mutual labels:  hadoop, hbase, springboot
Antsdb
AntsDB is a low latency, high concurrency, MySQL compliant SQL layer for HBase
Stars: ✭ 99 (+86.79%)
Mutual labels:  hadoop, hbase
Repository
个人学习知识库涉及到数据仓库建模、实时计算、大数据、Java、算法等。
Stars: ✭ 92 (+73.58%)
Mutual labels:  hadoop, hbase
Gaffer
A large-scale entity and relation database supporting aggregation of properties
Stars: ✭ 1,642 (+2998.11%)
Mutual labels:  hadoop, hbase
Atsd
Axibase Time Series Database Documentation
Stars: ✭ 68 (+28.3%)
Mutual labels:  hadoop, hbase
Hadoop cookbook
Cookbook to install Hadoop 2.0+ using Chef
Stars: ✭ 82 (+54.72%)
Mutual labels:  hadoop, hbase
Haproxy Configs
80+ HAProxy Configs for Hadoop, Big Data, NoSQL, Docker, Elasticsearch, SolrCloud, HBase, MySQL, PostgreSQL, Apache Drill, Hive, Presto, Impala, Hue, ZooKeeper, SSH, RabbitMQ, Redis, Riak, Cloudera, OpenTSDB, InfluxDB, Prometheus, Kibana, Graphite, Rancher etc.
Stars: ✭ 106 (+100%)
Mutual labels:  hadoop, hbase
Bigdata Interview
🎯 🌟[大数据面试题]分享自己在网络上收集的大数据相关的面试题以及自己的答案总结.目前包含Hadoop/Hive/Spark/Flink/Hbase/Kafka/Zookeeper框架的面试题知识总结
Stars: ✭ 857 (+1516.98%)
Mutual labels:  hadoop, hbase
Bigdata docker
Big Data Ecosystem Docker
Stars: ✭ 161 (+203.77%)
Mutual labels:  hadoop, hbase
Bigdata Playground
A complete example of a big data application using : Kubernetes (kops/aws), Apache Spark SQL/Streaming/MLib, Apache Flink, Scala, Python, Apache Kafka, Apache Hbase, Apache Parquet, Apache Avro, Apache Storm, Twitter Api, MongoDB, NodeJS, Angular, GraphQL
Stars: ✭ 177 (+233.96%)
Mutual labels:  hadoop, hbase
dockerfiles
Multi docker container images for main Big Data Tools. (Hadoop, Spark, Kafka, HBase, Cassandra, Zookeeper, Zeppelin, Drill, Flink, Hive, Hue, Mesos, ... )
Stars: ✭ 29 (-45.28%)
Mutual labels:  hadoop, hbase
Nagios Plugins
450+ AWS, Hadoop, Cloud, Kafka, Docker, Elasticsearch, RabbitMQ, Redis, HBase, Solr, Cassandra, ZooKeeper, HDFS, Yarn, Hive, Presto, Drill, Impala, Consul, Spark, Jenkins, Travis CI, Git, MySQL, Linux, DNS, Whois, SSL Certs, Yum Security Updates, Kubernetes, Cloudera etc...
Stars: ✭ 1,000 (+1786.79%)
Mutual labels:  hadoop, hbase
Weblogsanalysissystem
A big data platform for analyzing web access logs
Stars: ✭ 37 (-30.19%)
Mutual labels:  hadoop, hbase
Wifi
基于wifi抓取信息的大数据查询分析系统
Stars: ✭ 93 (+75.47%)
Mutual labels:  hadoop, hbase
Learning Spark
零基础学习spark,大数据学习
Stars: ✭ 37 (-30.19%)
Mutual labels:  hadoop, hbase
Bigdata Notes
大数据入门指南 ⭐
Stars: ✭ 10,991 (+20637.74%)
Mutual labels:  hadoop, hbase
orion
Management and automation platform for Stateful Distributed Systems
Stars: ✭ 77 (+45.28%)
Mutual labels:  hadoop, hbase
Dockerfiles
50+ DockerHub public images for Docker & Kubernetes - Hadoop, Kafka, ZooKeeper, HBase, Cassandra, Solr, SolrCloud, Presto, Apache Drill, Nifi, Spark, Consul, Riak, TeamCity and DevOps tools built on the major Linux distros: Alpine, CentOS, Debian, Fedora, Ubuntu
Stars: ✭ 847 (+1498.11%)
Mutual labels:  hadoop, hbase
Hbaseclient
HBase客户端数据管理软件
Stars: ✭ 135 (+154.72%)
Mutual labels:  hadoop, hbase
phoenix
Apache Phoenix / Hbase Spring Boot Microservices
Stars: ✭ 23 (-56.6%)
Mutual labels:  hadoop, hbase

分布式网盘系统

这个版本比较干净,整个demo在Hadoop,和Hbase环境搭建好了,可以启动起来。


技术选型

1.Hadoop
2.Hbase
3.SpringBoot
......


系统实现的功能

1.用户登录与注册
2.用户网盘管理
3.文件在线浏览功能
4.文件上传与下载
......


avatar


avatar


avatar


Hbase创建表语句

avatar


hbase-daemon.sh start master ## 启动Hbase
create 'email_user','user'
create 'user_id','id'
create 'gid_disk','gid' create 'user_file','file'
create 'file','file'
create 'follow','name'
create 'followed','userid'
create 'share','content'
create 'shareed','shareid'


HdfsConn

package com.netpan.dao.conn;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;

import java.io.IOException;

public class HdfsConn {
    private FileSystem fileSystem = null;
    private Configuration configuration = null;

    private static class SingletonHolder {
        private static final HdfsConn INSTANCE = new HdfsConn();
    }

    private HdfsConn() {
        try {
            configuration = new Configuration();
            configuration.set("fs.defaultFS", "hdfs://localhost:9000/");
            System.setProperty("HADOOP_USER_NAME", "root");
            configuration.set("dfs.permissions", "false");
            fileSystem = FileSystem.get(configuration);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static FileSystem getFileSystem() {
        return SingletonHolder.INSTANCE.fileSystem;
    }

    public static Configuration getConfiguration() {
        return SingletonHolder.INSTANCE.configuration;
    }
}

HbaseConn

package com.netpan.dao.conn;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.ConnectionFactory;
import org.apache.hadoop.hbase.client.Table;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class HbaseConn {
    private Connection conn;
    private Table table;
    private Admin admin;

    private static class SingletonHolder {
        private static final HbaseConn INSTANCE = new HbaseConn();
    }

    private HbaseConn() {
        try {
            Configuration hconf = new Configuration();
            Configuration conf = HBaseConfiguration.create(hconf);
            conf.set("hbase.zookeeper.quorum","localhost");  //hbase 服务地址
            conf.set("hbase.zookeeper.property.clientPort","2181"); //端口号
            conn = ConnectionFactory.createConnection(conf);
            admin = conn.getAdmin();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    //获取连接
    public static final Connection getConn() {
        return SingletonHolder.INSTANCE.conn;
    }

    // Hbase获取所有的表信息
    public List getAllTables() {
        List<String> tables = null;
        if (admin != null) {
            try {
                HTableDescriptor[] allTable = admin.listTables();
                if (allTable.length > 0)
                    tables = new ArrayList<String>();
                for (HTableDescriptor hTableDescriptor : allTable) {
                    tables.add(hTableDescriptor.getNameAsString());
                    System.out.println(hTableDescriptor.getNameAsString());
                }
            }catch (IOException e) {
                e.printStackTrace();
            }
        }
        return tables;
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].