derby

Is there a tool other than ij to look into a local derby database (folder)?

柔情痞子 提交于 2019-11-27 03:53:00
问题 I'm using Derby ij to look into my local Apache Derby database. It's just a folder and I connect to it like this: connect 'jdbc:derby:C:\Users\Torben\MyDatabase' USER 'me' PASSWORD 'secret'; It works, but I don't really like to look into the database in the console. Is there another tool for this? The best would be something with a GUI. 回答1: Squirrel SQL can connect to an Apache Derby database. Getting Started using the SQuirreL SQL Client 回答2: I simply use NetBeans IDE (Services -> Databases

data sources derby - connection refused

怎甘沉沦 提交于 2019-11-26 22:58:44
问题 I am trying to connect a database with a java project. After reading some tutorials and the course support, I have understood that I need to make a new data source under the Admin Console. So, I've logged in into the admin console, then navigated to Resources -> JDBC -> Data Sources -> New; filled in the fields and when I am testing the connection, the error I get is this one: Messages The test connection operation failed for data source MyDB on server server1 at node RO2CVG6CNode01 with the

java.sql.SQLIntegrityConstraintViolationException: Column 'ITEM_QTY' cannot accept a NULL value

偶尔善良 提交于 2019-11-26 21:56:21
问题 I'm using JPA API's and it works well, I have tried to add new member/column to the class and when I tried to add data into it using form, it shows "TRANSACTION ABORTED" error. "javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLIntegrityConstraintViolationException: Column 'ITEM_QTY' cannot accept a NULL value. Error Code: 20000 Call

How to get rid of derby.log, metastore_db from Spark Shell

孤街浪徒 提交于 2019-11-26 19:37:54
问题 When running spark-shell it creates a file derby.log and a folder metastore_db . How do I configure spark to put these somewhere else? For derby log I've tried Getting rid of derby.log like so spark-shell --driver-memory 10g --conf "-spark.driver.extraJavaOptions=Dderby.stream.info.file=/dev/null" with a couple of different properties but spark ignores them. Does anyone know how to get rid of these or specify a default directory for them? 回答1: The use of the hive.metastore.warehouse.dir is

Unable to start derby database from Netbeans 7.4

主宰稳场 提交于 2019-11-26 19:01:42
问题 I downloaded Netbeans 7.4 and Java 7 Update 51. I get the below error when I try to start Java DB or derby connection from Netbeans. This is on a windows 8 PC. I downloaded the version for windows xp 32 bit at work. It works fine. I am not sure what is missing. Thu Jan 16 00:48:23 EST 2014 : Security manager installed using the Basic server security policy. Thu Jan 16 00:48:24 EST 2014 : access denied ("java.net.SocketPermission" "localhost:1527" "listen,resolve") java.security

Derby Auto Increment by 100 when specified as 1

好久不见. 提交于 2019-11-26 18:32:48
问题 In used query to create derby database table consist of primary column auto increment. CREATE TABLE \"table\" (\n" + " \"id\" INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL,\n" + " \"path\" VARCHAR(2000) DEFAULT NULL,\n" + " \"downloaded\" BOOLEAN DEFAULT false NOT NULL,\n" + " \"retried_times\" SMALLINT DEFAULT 0 NOT NULL,\n" + " \"name\" VARCHAR(40),\n" + " \"downloaded_date\" TIMESTAMP DEFAULT NULL,\n" + " PRIMARY KEY (\"id\")\n" When i insert a row

Hive installation issues: Hive metastore database is not initialized

扶醉桌前 提交于 2019-11-26 17:57:27
问题 I tried to install hive on a raspberry pi 2. I installed Hive by uncompress zipped Hive package and configure $HADOOP_HOME and $HIVE_HOME manually under hduser user-group I created. When running hive, I got the following error message: hive ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Exception in thread "main" java.lang.RuntimeException: Hive metastore database is not initialized. Please use schematool (e.g. .

Cannot create JDBC driver of class ' ' for connect URL 'null' : I do not understand this exception

亡梦爱人 提交于 2019-11-26 17:49:05
Why does it say null URL and gives a empty ' ' class in the exception when i have provided the database URL ? I try to connect to derby database via a servlet while using Tomcat . When the servlet gets run,I get the following exceptions : org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection

Is it possible to use derby from apache in Eclipse now that they stopped developing the derby plugin for Eclipse?

怎甘沉沦 提交于 2019-11-26 16:48:57
I would like to use Derby from apache in order to include database management on a desktop application that I'm currently developing. Unfortunately I figured out that they have stopped developing this plugin and all the tutorials I've read online refer to this plugin. So my question is, how can I use the latest version of Derby on eclipse? What steps should I follow? I would like my application to be standalone and easily transferable. thanks in advance Apache Derby is just like other databases that provide interface through JDBC. You don't need a specific plugin to connect with Derby. Just

querying embedded database in netbeans using derby

浪尽此生 提交于 2019-11-26 11:36:39
问题 I have created an embedded database using netbeans and added data to it. so now i want to query the database, the code runs smoothly but doesn\'t display data. Here is my code: import java.sql.*; public class EmbeddedDB { public static void main(String[] args) { Connection con = null; Statement st = null; ResultSet rs = null; try { Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\"); con = DriverManager.getConnection(\"jdbc:derby:CustDB;create=true\", \"app\", \"app\"); System.out.println