服务器完整搭建supertset|zeppelin|druid|presto|flink|mysql

zeppelin 连接mysql 数据库
官方文档
https://zeppelin.apache.org/docs/0.7.3/interpreter/jdbc.html#create-a-new-jdbc-interpreter
https://zeppelin.apache.org/docs/0.7.3/interpreter/jdbc.html#mysql
按照官方文档的方法配置添加mysql ,后发现一直报错 org.mysql.jdbc.Driver找不到,开始以为mysql驱动没下载下载,不过我发现在local-repo中已经下载了。所以排除这个原因。后来查找java项目中mysql配置,发现驱动名写错了,应该是com.mysql.jdbc.Driver,而不是org.mysql.jdbc.Driver.好坑爹啊。官网文档上在create-a-new-jdbc-interpreter这个地方存的配置写错了。而在mysql部分没错。所有配置mysql的时候要注意这个问题


作者:冰清雪酷
来源:CSDN
原文:https://blog.csdn.net/luosai19910103/article/details/78969287
版权声明:本文为博主原创文章,转载请附上博文链接!

https://zeppelin.apache.org/docs/0.8.0/interpreter/neo4j.html

%neo4j
//Sample the TrumpWorld dataset
WITH
'https://docs.google.com/spreadsheets/u/1/d/1Z5Vo5pbvxKJ5XpfALZXvCzW26Cl4we3OaN73K9Ae5Ss/export?format=csv&gid=1996904412' AS url
LOAD CSV WITH HEADERS FROM url AS row
RETURN row.`Entity A`, row.`Entity A Type`, row.`Entity B`, row.`Entity B Type`, row.Connection, row.`Source(s)`
LIMIT 10

hive

https://blog.csdn.net/u010859707/article/details/73321743

mysql
https://yq.aliyun.com/ziliao/22618

flink 注意 flink env 是benv !!!!

%flink
case class WordCount(word: String, frequency: Int)
val bible:DataSet[String] = env.readTextFile("10.txt.utf-8")
val partialCounts: DataSet[WordCount] = bible.flatMap{
    line =>
        """\b\w+\b""".r.findAllIn(line).map(word => WordCount(word, 1))
//        line.split(" ").map(word => WordCount(word, 1))
}
val wordCounts = partialCounts.groupBy("word").reduce{
    (left, right) => WordCount(left.word, left.frequency + right.frequency)
}
val result10 = wordCounts.first(10).collect()

superset
https://blog.csdn.net/afanyusong/article/details/78899728

不正确姿势在SqlLab中会出现如下问题:

argument of type 'NoneType' is not iterable
1
正确姿势是:

presto://hive@localhost:port//
1
前边都好理解,最主要是后边两个参数,presto_catalog_name 和 hive_db_name

hive_db_name
是 hive 中数据库的名字,这个好说,不填默认是 default

presto_catalog_name
--------------------- 
作者:afunyusong 
来源:CSDN 
原文:https://blog.csdn.net/afanyusong/article/details/78899728 
版权声明:本文为博主原创文章,转载请附上博文链接!

superset mysql
https://daizj.iteye.com/blog/2363186

在Flask中连接MySQL时出现ModuleNotFoundError: No module named 'MySQLdb'错误,只要在配置SQLALCHEMY_DATABASE_URI时,加上一个pymysql就可以了: 
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:dzd123@localhost/你的数据库名' 
,当然,前提是要已经安装了pymysql,如果没有装pymysql,是会报ModuleNotFoundError: No module named 'pymysql'错误的,安装命令也很简单:pip install pymysql
--------------------- 
作者:喜欢海呀 
来源:CSDN 
原文:https://blog.csdn.net/qq_25046261/article/details/78991442 
版权声明:本文为博主原创文章,转载请附上博文链接!


安装Python mysqlclient出现“OSError: mysql_config not found”错误
easy_install mysql-python (mix os)
pip install mysql-python (mix os)
apt-get install python-mysqldb (Linux Ubuntu)
cd/usr/ports/databases/py-MySQLdb && make install clean (FreeBSD)
yum install MySQL-python (linux Fedora, CentOS)
pip install mysqlclient (Windows)

https://blog.csdn.net/yang_0103/article/details/82716168
https://www.cnblogs.com/jlj9520/p/6667988.html

创建管理员账号

fabmanager create-admin --app superset

初始化数据库

superset db upgrade

载入案例数据

superset load_examples

初始化角色和权限

superset init

启动服务,端口号 8088,使用 -p 更改端口号

superset runserver

作者:Gaius_Yao
链接:https://www.jianshu.com/p/b02fcea7eb5b
來源:
著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel docker-io postgresql golang maven

yum -y install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel

yum -y install wget lrzsz nano nc telnet httpd ntp mod_ssl readline-devel openssl-devel ant
yum -y install cyrus-sasl-lib.x86_64 cyrus-sasl-devel.x86_64 libgsasl-devel.x86_64 saslwrapper-devel.x86_64
sudo yum -y install mpich mpich-devel gcc-c++ gcc gcc-gfortran compat-gcc-44 compat-gcc-44-c++ compat-gcc-44-gfortran compat-libf2c-34 boost boost-devel boost-doc

yum -y install httpd mod_ssl java-1.8.0-openjdk java-1.8.0-openjdk-devel mysql-connector-java

yum install -y alien qtwebkit fcitx fcitx-pinyin fcitx-configtool #为了安装 ubuntu的deb 版包

yum -y install libXss* redhat-lsb-core-4.1-27.el7.centos.1.x86_64 libappindicator* openssl-devel zilb-devel python3-devel postgresql python-devel libffi-devel libpqxx-devel qt5-qtwebkit

yum -y install libXss*
yum provides */lsb_release #!!!!!!

yum install -y redhat-lsb-core-4.1-27.el7.centos.1.x86_64
yum install -y libappindicator*
yum install openssl-devel zilb-devel python3-devel -y
yum install -y postgresql python-devel libffi-devel libpqxx-devel
yum install qt5-qtwebkit #teamviewer
yum -y groupinstall "Development tools" # everthing 版默认安装


你可能感兴趣的:(服务器完整搭建supertset|zeppelin|druid|presto|flink|mysql)