This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -u userName:password -H "Accept: application/json" http://locahost:8080/pentaho/api/userroledao/users | |
curl -u userName:password -H "Accept: application/json" http://locahost:8080/pentaho/api/userroledao/roles | |
curl -X PUT -u userName:password http://locahost:8080/pentaho/api/userroledao/createUser \ | |
-H "Accept: application/json" \ | |
-H "Content-Type: application/json" \ | |
-d '{ "userName" : "Test1", "password" : "test" }' | |
curl -X PUT -u userName:password http://locahost:8080/pentaho/api/userroledao/createUser \ | |
-H "Accept: application/json" \ | |
-H "Content-Type: application/json" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Connecting to Vertica via pyvertica | |
__author__ = 'vosipov' | |
from pyvertica.connection import get_connection | |
conn = get_connection(False, driver='{Vertica}', server='192.168.30.128', database='VMart', port=5433, uid='dbadmin', pwd='password') | |
cursor = conn.cursor() | |
for row in cursor.execute("SELECT table_name FROM tables;"): | |
print row | |
conn.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> | |
<style> | |
table{ | |
width:500px; | |
height:500px; | |
} | |
table td{ | |
padding:10px; | |
margin:10px; | |
border:1px solid #ccc; |