# Running elasticsearch source code in eclipse luna

**URL:** <https://discuss.elastic.co/t/running-elasticsearch-source-code-in-eclipse-luna/105000>\
**Category:** Elasticsearch\
**Created:** [October 24, 2017, 6:30am UTC](https://discuss.elastic.co/t/running-elasticsearch-source-code-in-eclipse-luna/105000 "2017-10-24T06:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviral\_srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aviral_srivastava/32/98018_2.png) [@aviral\_srivastava](https://discuss.elastic.co/u/aviral_srivastava)\
**Post date:** [October 24, 2017, 6:30am UTC](https://discuss.elastic.co/t/running-elasticsearch-source-code-in-eclipse-luna/105000/1 "2017-10-24T06:30:45Z")

</div>

OS: Windows 7 Professional  
Eclipse Luna, JDK 1.8, apache-maven-3.3

Hi,  
Imported elasticsearch 2.1 branch from github in eclipse luna. Then converted it into a maven project.  
Configured eclipse to use external apache-maven-3.3.1  
Java Compiler compliance 1.8

During maven install I am getting below errors:

Suite: org.elasticsearch.index.translog.BufferedTranslogTests  
2\> REPRODUCE WITH: mvn test -Pdev -pl org.elasticsearch:elasticsearch -Dtests.seed=FAE4FFC1B47C6D9B -Dtests.class=org.elasticsearch.index.translog.BufferedTranslogTests -Dtests.method="testWithRandomException" -Des.logger.level=ERROR -Dtests.assertion.disabled=false -Dtests.security.manager=true -Dtests.heap.size=512m -Dtests.locale=en -Dtests.timezone=Europe/Kiev  
ERROR 0.40s J1 | BufferedTranslogTests.testWithRandomException \<\<\<

> Throwable #1: java.io.IOException: Could not remove the following files (in the order of attempts):  
> C:\Users\avisriva\git\elasticsearch\core\target\J1\temp\org.elasticsearch.index.translog.BufferedTranslogTests\_FAE4FFC1B47C6D9B-001\tempDir-005: java.nio.file.DirectoryNotEmptyException: C:\Users\avisriva\git\elasticsearch\core\target\J1\temp\org.elasticsearch.index.translog.BufferedTranslogTests\_FAE4FFC1B47C6D9B-001\tempDir-005  
> at \_\_randomizedtesting.SeedInfo.seed([FAE4FFC1B47C6D9B:9C3C94DECF98E38A]:0)  
> at org.apache.lucene.util.IOUtils.rm(IOUtils.java:295)  
> at org.elasticsearch.index.translog.Translog.(Translog.java:198)  
> at org.elasticsearch.index.translog.TranslogTests.testWithRandomException(TranslogTests.java:2035)  
> at java.lang.Thread.run(Thread.java:748)  
> 2\> NOTE: leaving temporary files on disk at: C:\Users\avisriva\git\elasticsearch\core\target\J1\temp\org.elasticsearch.index.translog.BufferedTranslogTests\_FAE4FFC1B47C6D9B-001  
> 2\> NOTE: test params are: codec=Asserting(Lucene53): {}, docValues:{}, sim=DefaultSimilarity, locale=en, timezone=Europe/Kiev  
> 2\> NOTE: Windows 7 6.1 amd64/Oracle Corporation 1.8.0\_144 (64-bit)/cpus=4,threads=1,free=296094160,total=521142272  
> 2\> NOTE: All tests run in this JVM: [LimitTokenCountFilterFactoryTests, RoutingIteratorTests, TimeValueTests, CustomBoostMappingTests, DateMathExpressionResolverTests, PathMatchDynamicTemplateTests, NodeJoinControllerTests, MetaDataTests, ScriptParameterParserTests, YamlSettingsLoaderTests, TransportInstanceSingleOperationActionTests, ShortFieldTypeTests, CompressSourceMappingTests, BlendedTermQueryTests, ScriptScoreFunctionTests, IndexFieldDataServiceTests, CorruptedCompressorTests, SearchSourceCompressTests, IndexingMemoryControllerTests, ShardVersioningTests, GeohashMappingGeoPointTests, CompletionFieldTypeTests, BytesRefHashTests, PathMapperTests, VersionLookupTests, InputStreamIndexInputTests, SnapshotRequestsTests, TransportClientHeadersTests, RestTestParserTests, AllocationIdTests, ReplicaShardAllocatorTests, GatewayModuleTests, TypeFieldTypeTests, GeoPointFieldTypeTests, LoggingConfigurationTests, IndexShardTests, NestedChildrenFilterTests, RegexTests, ByteArrayIndexInputTests, SyncedFlushSingleNodeTests, CopyOnWriteHashSetTests, LZFXContentTests, IntegerFieldTypeTests, MetaDataIndexUpgradeServiceTests, RatioValueTests, BooleanFieldTypeTests, IndexingSlowLogTests, PidFileTests, DiskThresholdDeciderTests, FloatFieldTypeTests, RoutingFieldTypeTests, PluginManagerPermissionTests, DoubleFieldDataTests, SmileFilteringGeneratorTests, QueueRecyclerTests, TribeUnitTests, IndexStoreBWCTests, ListenableActionFutureTests, XContentHelperTests, CompoundTypesTests, InternalEngineSettingsTests, StringFieldTypeTests, SimpleNumericTests, SearchSourceBuilderTests, IndexBalanceTests, ZenDiscoveryUnitTests, IndexSearcherWrapperTests, ParentFieldTypeTests, SetupSectionParserTests, PreferLocalPrimariesToRelocatingPrimariesTests, SingleShardOneReplicaRoutingTests, AwarenessAllocationTests, ScriptValuesTests, ShardsLimitAllocationTests, KeepTypesFilterFactoryTests, VersionFieldUpgraderTests, FieldDataCacheTests, TenShardsOneReplicaRoutingTests, ParseFieldTests, SettingsFilterTests, GatewayMetaStateTests, RestApiParserTests, SimpleAllTests, PrimaryNotRelocatedWhileBeingRecoveredTests, DiskUsageTests, ElectReplicaAsPrimaryDuringRelocationTests, DateBackwardsCompatibilityTests, ReplicaAllocatedAfterPrimaryTests, DeflateCompressedStreamTests, RoutingTableTests, BooleanFieldMapperTests, FloatFieldDataTests, NetworkServiceTests, DeadNodesAllocationTests, MultiValueModeTests, BufferedTranslogTests]  
> Completed [215/524] on J1 in 187.67s, 37 tests, 1 error \<\<\< FAILURES!

Suite: org.elasticsearch.bootstrap.SecurityTests  
IGNOR/A 0.01s J2 | SecurityTests.testEnsureSymlink

> Assumption #1: test cannot create symbolic links with security manager enabled(throwable: java.security.AccessControlException: access denied ("java.nio.file.LinkPermission" "symbolic"))  
> IGNOR/A 0.00s J2 | SecurityTests.testSymlinkPermissions  
> Assumption #1: windows does not automatically grant permission to the target of symlinks  
> IGNOR/A 0.00s J2 | SecurityTests.testEnsureBrokenSymlink  
> Assumption #1: test cannot create symbolic links with security manager enabled(throwable: java.security.AccessControlException: access denied ("java.nio.file.LinkPermission" "symbolic"))  
> Completed [431/524] on J2 in 0.25s, 10 tests, 3 skipped

Tests with failures:

- org.elasticsearch.index.translog.BufferedTranslogTests.testWithRandomException
- org.elasticsearch.index.translog.TranslogTests.testWithRandomException

[ERROR] Failed to execute goal com.carrotsearch.randomizedtesting:junit4-maven-plugin:2.1.16:junit4 (tests) on project elasticsearch: There were test failures: 524 suites, 3007 tests, 2 errors, 22 ignored (22 assumptions) -\> [Help 1]

---

<div class="post-metadata">

**Author:** ![aviral\_srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aviral_srivastava/32/98018_2.png) [@aviral\_srivastava](https://discuss.elastic.co/u/aviral_srivastava)\
**Post date:** [October 25, 2017, 7:45am UTC](https://discuss.elastic.co/t/running-elasticsearch-source-code-in-eclipse-luna/105000/2 "2017-10-25T07:45:07Z")

</div>

Can anybody help please.. I am not able to understand why am I getting java.nio.file.DirectoryNotEmptyException.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 22, 2017, 7:45am UTC](https://discuss.elastic.co/t/running-elasticsearch-source-code-in-eclipse-luna/105000/3 "2017-11-22T07:45:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
