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.
Related
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
I just install neo4j 3.2.3 on my windows notebook and I try to load csv file.
LOAD CSV WITH HEADERS FROM 'file:///test.csv' AS line
WITH toUpper(line.TEST_NAME) AS TEST_NAME
CREATE(TEST);
I got the following error:
Neo.ClientError.Statement.ExternalResourceFailed: Couldn't load the external resource at: file:/C:/Users/*****/Documents/Neo4j/default.graphdb/import/test.csv
I cannot locate the neo4j.conf or propriety files in the default.graphdb directories.
can someone help?
I'm on windows 10 neo4j 3.2.3.
I can load from url. but with the same file format, I failed to load from local.
LOAD CSV FROM "https://gist.githubusercontent.com/jexp/d788e117129c3730a042/raw/a147631215456d86a77edc7ec08c128b9ef05e3b/people_leading_empty.csv"
AS line
WITH line LIMIT 4
RETURN line
successful
with the same file save as .../Neo4j/default.graphdb/import/test1.csv
LOAD CSV WITH HEADERS FROM "file:///test1.csv" AS line
WITH line LIMIT 4
RETURN line
I got error:
Neo.ClientError.Statement.ExternalResourceFailed: Couldn't load the external resource at: file:/C:/Users/....../Documents/Neo4j/default.graphdb/import/test.csv
From the error message, it can locate the file. But cannot perform the LOAD from local.
I cannot locate the neo4j.conf or propriety files in the
default.graphdb directories.
According to the Neo4j docs, the neo4j.conf file is located in the directory <neo4j-home>\conf\neo4j.conf for zip packages and %APPDATA%\Neo4j Community Edition\neo4j.conf for desktop installation.
You should locate the configuration file and set the following line.
dbms.security.allow_csv_import_from_file_urls=true
The LOAD CSV operation in Neo4j can only load the UTF-8 format files, try to change the import file's format to UTF-8(save the .csv file as .csv(utf-8) type).
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).
When running firefox on centos. I am getting the following error. How do i resolve this?
XPCOMGlueLoad error for file /usr/local/firefox/libxul.so:
libdbus-glib-1.so.2: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
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 :)