arangodb

ArangoDB: getting started with Foxx Microservices: 404: errorMessage: unknown path

£可爱£侵袭症+ 提交于 2019-12-24 21:00:53
问题 Using ArangoDB documentation version 3.3 or version 3.4 for the Getting Started section of Foxx Microservices, I can't get past this error: Failed to load API definition. NetworkError when attempting to fetch resource. http://192.168.1.1:8529/_db/_system/_admin/aardvark/foxxes/docs/swagger.json?mount=/getting-started That error is shown on the API tab of the service. After installing my service according to the tutorial, I get the service's card as described. I click that card and then click

Not sure how to create ArangoDB graph using columns in existing collection

无人久伴 提交于 2019-12-24 19:23:32
问题 Background I have a rocksdb collection that contains three fields: _id, author, subreddit. Problem I would like to create a Arango graph that creates a graph connecting these two existing columns. But the examples and the drivers seem to only accept collections as its edge definitions. Issue The ArangoDb documentation is lacking information on how I can create a graph using edges and nodes pulled from the same collection. EDIT: Solution This was fixed with a code change at this Arangodb

ArangoDB, Java, Velocypack error trying to deserialize a DBEntity

▼魔方 西西 提交于 2019-12-24 18:42:31
问题 I'm using SpringBoot 1.5.4.RELEASE, ArangoDB java driver 4.5.0, Arango Spring Data 1.1.5 I'm getting this error when retrieving an object. com.arangodb.velocypack.exception.VPackParserException: java.lang.InstantiationException: com.arangodb.springframework.core.convert.DBEntity I can't find the root cause yet (still looking) but I can see where the error is being thrown, in the class VPack there is this method private <T> T createInstance(final Type type) throws InstantiationException,

error MSB4057: The target “v8” does not exist in the project

久未见 提交于 2019-12-24 15:13:42
问题 I'm trying to build V8 as part of ArangoDB using the official build scripts and following the official Windows build instructions. The compilation fails for all v8* targets ( v8-build.bat ): msbuild All.sln /t:v8 /p:Configuration=Release /p:Platform=x64 msbuild All.sln /t:v8_libbase /p:Configuration=Release /p:Platform=x64 msbuild All.sln /t:v8_libplatform /p:Configuration=Release /p:Platform=x64 error MSB4057: The target "v8" does not exist in the project. If I open the solution file in

How to avoid arangodb collection locks

我只是一个虾纸丫 提交于 2019-12-24 12:08:49
问题 I have trace enabled and I see following message being printed out like 10k times with in a second. 2016-03-12T18:14:56Z [31136] TRACE [C:\b\ArangoDB-2.8.4\arangod\Wal\CollectorThread.cpp:750] wal collector couldn't acquire write lock for collection '39659811' Following are the figures of the collection. Type Count Size Info Datafiles 57 1.79 GB Journals 1 32 MB Compactors 0 0 B Shape files 0 0 B Indexes 3 890.2 MB Type Count Info Shapes 239 Attributes 77 Uncollected 221145 References 1 Type

Intersect two traversals in ArangoDB

醉酒当歌 提交于 2019-12-24 11:13:36
问题 I'm trying to understand how to intersect two results in ArangoDB and my scenario looks like this. I can easily find users living in Spain, Island or Europe with the query: FOR x IN 1..3 INBOUND "places/Europe" situedIn,livesIn FILTER IS_SAME_COLLECTION('users',x) return x What I want to understand is the best way to extend the search capabilities to include Profession: Example: Return all Police in Spain (returns [A]) Return all Police in Europe (returns [A]) Return all Legal in Europe

Why in ArangoDB module.context.collection return null

て烟熏妆下的殇ゞ 提交于 2019-12-24 10:41:18
问题 I'm trying to learn how to develop Foxx services. There are many examples where people use: const someCollection = module.context.collection('someCollectionName'); But in my project this code doesn't work. someCollection always null, but it's exist in collections. And this code works perfectly: const db = require('@arangodb').db; const someCollection = db._collection('someCollectionName'); My question is why first code isn't work? 回答1: Foxx services are intended to have their own collections,

Arangodb journal logfiles

 ̄綄美尐妖づ 提交于 2019-12-24 08:42:00
问题 What for are logfiles in: "arango_instance_database/journals/logfile-xxxxxx.db Can I delete them ? How can I reduce their size ? I set database.maximal-journal-size = 1048576 but those files are still 32M large. Can I set some directory for them like /var/log/... ? 回答1: You're referencing the Write Ahead Logfiles which are at least temporarily the files your data is kept in. So its a very bad idea to remove them on your own, as long as you still like your data to be intact. The files are used

arangodump: How do I know the latest “revision”?

我们两清 提交于 2019-12-24 08:17:19
问题 I'm doing manual parsing and importing of data from arangodump, which contains records of every revision of every document. The problem is, I cannot tell which item is the latest revision. (This is also problematic in the case of deleted documents where there would be records in the arangodump with a revision but with an empty document.) From the docs: Clients can use revisions ids to perform simple equality/non-equality comparisons (e.g. to check whether a document has changed or not), but

Installing ArangoDB on Windows Server 2008

你说的曾经没有我的故事 提交于 2019-12-24 03:01:29
问题 I'm having difficulty getting Arango 1.4.9 working on my Windows 2008 Standard (SP2) server. It's a fresh install. When I try to start Arango Server I receive this message: The procedure entry point TryAcquireSRWLockExclusive could not be located in the dynamic link library KERNEL32.dll I have tried both the 64bit and 32bit versions. I have run the installer as an administrator and vice versa. Any ideas? 回答1: TryAcquireSRWLockExclusive is from a newer Windows API. The Windows 2008r2 build