我有一个关于知识的问题(opensource BI软件 - www.knowage-suite.com)。
有人能告诉我如何使用SQL Server连接创建DataSource吗?
此致 托马斯
答案 0 :(得分:0)
下面给出了安装Knowage和设置数据库的步骤。
安装MySQL 1。 sudo apt-get install mysql-server
2。 修改了/etc/mysql/mysql.conf.d/mysqld.cnf并更改了 从
date category
2018-03-01 abcd
2018-03-02 defc
2018-03-02 00:00:00 acd
2018-03-02 00:00:00 bac
2018-03-03 xyz
3。 mysql -u root -p
bind-address = 127.0.0.1
to
bind-address = *
安装Java
ALTER USER 'root'@'%' IDENTIFIED BY ''mypswd ';
GRANT ALL PRIVILEGES ON * . * TO 'root'@'%' IDENTIFIED BY ''mypswd';
FLUSH PRIVILEGES;
service mysql restart
安装Knowage 1.下载Knowage
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export PATH=$JAVA_HOME/bin:$PATH
2。创建交换记忆(https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04)
wget http://download.forge.ow2.org/knowage/Knowage-6_2_0-RC-CE-Installer-Unix-20180509.zip
unzip Knowage-6_2_0-RC-CE-Installer-Unix-20180509.zip
设置知识
sudo swapon --show
free -h
df -h
sudo fallocate -l 4G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
ls -lh /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
free -h
在conf / server.xml中添加数据库源
sh Knowage-6_2_0-RC-CE-Installer-Unix-20180509.sh -c
Used existing MySQL DB and it created knowage_ce with following tables.
下载MySQL Connector并复制到lib目录
<Resource name="jdbc/knowage" auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/knowage_ce"
username="root"
password="mypswd"
maxActive="20" maxIdle="10"
maxWait="-1"/>
在/ bin
中启动知识服务器 cp mysql-connector-java-5.1.46.jar /home/babbarkrishan/knowage/Knowage-Server-CE/lib/
希望它能解决你的问题。
此致
克尚
答案 1 :(得分:0)
0> put MSSQL JDBC driver into `./<your_knowage_installation_directory>/lib` folder
1> log in (on web-UI) as administrator
2> data source
3> click on red '+' sign
4> give a label and choose your dialect (SQL-Server)
5> fill your credential (need SQLSErver auth, not active directory)
6> insert into JDBC this: `jdbc:sqlserver://<YOUR_SERVER_IP>`
7> insert `com.microsoft.sqlserver.jdbc.SQLServerDriver` as driver
8> create your dataset as a query (remember `use <your_db_name>` at the beginning of your query)