Closed jze closed 8 years ago
The exported index is so small, I can even attach it here.
If you unpack the data with base64 -d | tar xvfz -
it will create a directory .marvel-index/ that contains the exported files.
H4sIALQGKlYAA+2WXW/aMBSGueZXRL6mzI4/Qnu7aVeVpmmadhmZ4LXpII4cp9uE8t93EmCIAI0q
pWFrzyNBnOMDPuG8r810pd2jWV79SOc60+9GLwEFIimbK9C+NmMWKhZypYQUIwojuATyRappURZe
uyAYOWv9U3ld8/8p08P+J7bMen/MusFKiCf6z1r954KpUUD7LuQUb7z/7NIFIBel5X+d5wvtez4H
nr//80gp3P+H4Ez/ez0Hnr//S8op7v9DgPv/2+aM/+u33tbo8r9SvOV/ocII/T8E4zWJ02xhfpEb
cqgFMiGx/50bmNiqoo6kC7jf5H3KfVGHisQ6yKL10JYugfGawK/qywJyvUv1EtIejStSm0GETfmU
Xc2jUM5mM5hxJrfOkxvvSlNVWFBXQb32/4z/VzBIs7t+1ujyfySj9vnP4e8i+n8AxutxEJDc2dw4
nxrQY1BHILYT3fYeIhutB2Ru7dLojDTxarJJ38n5OL0AgWd3h9l/td6RPq5fFRbZV5FH/W/5vzDe
w2eKXjXW4X/Gedv/ggmO/h+CjWp3bd9rdnvi7UWVOKM9CC2G86FRFxNCMhqFLIw4JZNdXlau5sbF
9ntc3Gu3qL+SyP10WdbnI6w4u33gX03y+eO327z4snr/4T6WP/d5x7Le1WCazzMqqLy+JtvJ6sT6
YLtlmuimAnbCqvjQr/+hL20vBEEQBEEQBEEQBPkn+ANm04eLACgAAA==
Thanks for reporting the issue. I'll try to look into it this weekend.
I took a quick look at the file. It looks like the mapping for appdata is repeated twice. Try doing the import again after fixing .marvel-kibana/appdata/mapping Same goes for the .marvel-kibana/settings file.
Of course this is still a bug that needs to be fixed ^^
I have tried to isolate the fault. It seems that the JSON parser is confused if the buffer in driver/file.js near line 271 starts with a line break '\n'.
If you add a linelog.error(e);
the the function handleUncaughtExceptions in exporter.js you can see this error:
{ name: 'SyntaxError',
message: 'Unexpected \'\'',
at: 2,
text: '\n' }
I successfully exported my index from Elasticsearch 1.7.3 to files with the newest Git version (4a4cc8a). However, the re-import does not work. For testing purposes I exported the output of my Marvel plugin. This is the complete log: