H2 tries to create database in invalid location - h2

when I try to create a database in H2 in the web console with the following url
jdbc:h2:tcp://localhost/data/vervikMonitor
I get the following error:
IO Exception: "java.io.FileNotFoundException:
C:\Program Files\H2\bin\data\vervikMonitor.lock.db (No access)";
"C:/Program Files/H2/bin/data/vervikMonitor.lock.db" [90031-162] 90031/90031 (Help)
I have a norwegian version of Windows, so the path to my program folder is C:/Programfiler/ - why does H2 try to access the english style c:/Program Files/, where is that reference stored?

Try absolute paths (note the //):
jdbc:h2:tcp://localhost//data/vervikMonitor
Of course you must make sure that C:\data\vervikMonitor is writable. Or you can use a different directory :)

Related

Use Apache Daffodil cmd interface

I am new to Apache Daffodil and am trying to follow the example provided: https://daffodil.apache.org/examples/
I am trying to parse the file, simpleCSV using the schema, csv.dfdl.xsd. Both files are in the same folder as the daffodil.bat folder.
In cmd, I run .\daffodil.bat parse --schema csv.dfdl.xsd simpleCSV.csv
I get the error:
[error] Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; DaffodilXMLLoader: Unable to resolve schemaLocation='csv-base-format.dfdl.xsd'.
Schema context: file:/C:/Users/rinat/OneDrive/Desktop/WORK%20STUFF/apache-daffodil-3.4.0-bin/apache-daffodil-3.4.0-bin/bin/csv.dfdl.xsd Location in file:/C:/Users/rinat/OneDrive/Desktop/WORK STUFF/apache-daffodil-3.4.0-bin/apache-daffodil-3.4.0-bin/bin/csv.dfdl.xsd`
How do I resolve this?
You need to copy csv-base-format.dfdl.xsd (found in the same src/ directory as csv.dfdl.xsd) into the same directory as your csv.dfdl.xsd file. That file provides a number of default settings imported by csv.dfdl.xsd, so they must be in the same directory.

Resource location must not be null

I am using intellij and here are my settings when running a java program:
Working directory: c:/Users/myuser/configuration/properties
VM optiions: -Dserver.ssl.trust-store=config/keystore.jks - Dserver.ssl.trust-store-password=changeit
My directory structure is:
.. /configuration/properties/config/keystore.jks
But I keep on getting Resource must not be null error. How shoukd I set the vm options properly? I tried using full path and "file:/" but same error

Pig register jar, file does not exist error

I'm using Hortonworks sandbox and trying to run a simple pig script. There appear to be annoying error related to "file does not exist".
Below is the script:
REGISTER '/piggybank.jar';
inp = load '/my.csv' USING org.apache.pig.piggybank.storage.CSVExcelStorage..
ERROR 2997: Encountered IOException. File does not exist:
hdfs://sandbox.hortonworks.com:8020/tmp/udfs/ '/piggybank.jar'
However, my jar is present at the root(/) and I have given proper permission as well. Don't know why the path is pointing to /tmp/udfs....
Can anyone provide some suggestion?
Do not place the path within quotes. Also provide full URI of the Jar file location.
REGISTER hdfs://sandbox.hortonworks.com:8020/piggybank.jar;
Refer REGISTER (a jar/script).

Failed opening required 'Smarty_Internal_TemplateCompilerBase.php'

I'm using smarty version 3.1.13;
My project works perfectly on the local server;
When I put my site on the server (www.1and1.com) appears the following error:
Fatal error: require_once():
Failed opening required 'Smarty_Internal_TemplateCompilerBase.php'
(include_path='/homepages/39/d441258317/htdocs/mtx/application:/
homepages/39/d441258317/htdocs/mtx/application/controllers:
/homepages/39/d441258317/htdocs/mtx/application/models:
/homepages/39/d441258317/htdocs/mtx/application/../library:
/homepages/39/d441258317/htdocs/mtx/application/../library/Smarty
/sysplugins:/homepages/39/d441258317/htdocs/mtx/application/../library
/Smarty/plugins:.:/usr/lib/php6') in /homepages/39/d441258317/htdocs/
mtx/index.php on line 28
I changed the permissions of the folder compile_c but nothing, still get an error
Appreciate your help
looks like a big problem but was not. When i created my folder in local server did i put "public" folder with "P" upercase. Because i have a linux server and linux it's case sensitive it not works. Just rename the folder from "Public" to "public" and it done!

Oracle Exadata Error: CellCli not Found Error

I am trying to run cellcli on my one of the Exadata Cell Server.
When I login to the Server, I am able to see all the files as expected.
(Like: all_group all_nodelist_group cell_group all_ib_group etc)
When I issue command to start cellcli it gives me error that command not found:
# cellcli
-bash: cellcli: command not found
# which cellcli
which: no cellcli in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Any idea what is the location of the cellclie executable on exadata?
Do I need to export any other path to get this command?
cellcli is in /opt/oracle/cell/cellsrv/bin. It should be put in path by /etc/profile.d/cell_env.sh
(from Marc Fielding)

Resources